PlotSpilloverCRTpower {aihuman}R Documentation

Plot power analysis of conditional randomization test

Description

See Figure S9 for example.

Usage

PlotSpilloverCRTpower(res)

Arguments

res

A data.frame generated with SpilloverCRTpower.

Value

A ggplot

Examples


data(synth)
data(hearingdate_synth)
crt_power <- SpilloverCRTpower(
  D = synth$D, Z = synth$Z,
  CourtEvent_HearingDate = hearingdate_synth,
  size = 1
) # adjust the size
PlotSpilloverCRTpower(crt_power)



[Package aihuman version 1.0.1 Index]