Learn R Programming

aihuman (version 1.0.0)

PlotSpilloverCRTpower: Plot power analysis of conditional randomization test

Description

See Figure S9 for example.

Usage

PlotSpilloverCRTpower(res)

Value

A ggplot

Arguments

res

A data.frame generated with SpilloverCRTpower.

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab