SpilloverCRT {aihuman} | R Documentation |
Conduct conditional randomization test
Description
See S3.1 for more details.
Usage
SpilloverCRT(D, Z, CourtEvent_HearingDate, n = 100, seed.number = 12345)
Arguments
D |
A numeric vector of judge's decision. |
Z |
A numeric vector of treatment variable. |
CourtEvent_HearingDate |
The court event hearing date. |
n |
Number of permutations. |
seed.number |
An integer for random number generator. |
Value
A list
of the observed and permuted test statistics and its p-value.
Examples
data(synth)
data(hearingdate_synth)
crt <- SpilloverCRT(D = synth$D, Z = synth$Z, CourtEvent_HearingDate = hearingdate_synth)
[Package aihuman version 0.1.0 Index]