Learn R Programming

hettx (version 0.1.3)

SKS.stat: SKS.stat

Description

Shifted kolmogorov-smirnov statistic. Calculate KS distance between Y0 and Y1 shifted by sample tau.

Usage

SKS.stat(Y, Z)

Value

The value of the test.

Arguments

Y

Observed outcome vector

Z

Treatment assigment vector

See Also

KS.stat, SKS.stat.cov

detect_idiosyncratic

Examples

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

Run the code above in your browser using DataLab