Learn R Programming

aihuman (version 1.0.0)

SpilloverCRT: Conduct conditional randomization test

Description

See S3.1 for more details.

Usage

SpilloverCRT(D, Z, CourtEvent_HearingDate, n = 100, seed.number = 12345)

Value

A list of the observed and permuted test statistics and its p-value.

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.

Examples

Run this code
# \donttest{
data(synth)
data(hearingdate_synth)
crt <- SpilloverCRT(D = synth$D, Z = synth$Z, CourtEvent_HearingDate = hearingdate_synth)
# }

Run the code above in your browser using DataLab