SKS.stat.cov: SKS.stat.cov.pool

View source: R/helper_stat_calc.R

SKS.stat.cov.poolR Documentation

SKS.stat.cov.pool

Description

SKS.stat.cov.pool is the shifted kolmogorov-smirnov statistic with covariates to increase precision. This is the test statistic used Ding, Feller, and Miratrix (2016), JRSS-B.

SKS.stat.cov is the shifted kolmogorov-smirnov statistic with covariates with model for outcomes calculated on control group only. This avoids "splitting" the treatment variation between tx and co groups. We recommend this method over the "pool" method.

Usage

SKS.stat.cov.pool(Y, Z, X)

SKS.stat.cov(Y, Z, X)

Arguments

Y

Observed outcome vector

Z

Treatment assigment vector

X

Additional pre-treatment covariates to adjust for in estimation, but not to interact with treatment.

Value

The value of the test.

Examples

df <- make.randomized.dat( 1000, gamma.vec=c(1,1,1,2), beta.vec=c(-1,-1,1,0) )
SKS.stat.cov.pool(df$Yobs, df$Z, df$A)

df <- make.randomized.dat( 1000, gamma.vec=c(1,1,1,2), beta.vec=c(-1,-1,1,0) )
SKS.stat.cov(df$Yobs, df$Z, df$A)


hettx documentation built on Aug. 20, 2023, 1:06 a.m.