PlotSpilloverCRTpower: Plot power analysis of conditional randomization test

View source: R/crt.R

PlotSpilloverCRTpowerR 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)



aihuman documentation built on April 12, 2025, 1:47 a.m.