50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

hettx (version 0.1.3)

WSKS.t: WSKS.t

Description

Weighted average of the group-level SKS statistics. This is useful for a blocked experiment.

Usage

WSKS.t(Y, Z, W)

Value

The value of the test.

Arguments

Y

Observed outcome vector

Z

Treatment assigment vector

W

A a factor or categorical covariate.

Examples

Run this code
df <- make.randomized.dat( 1000, gamma.vec=c(1,1,1,2), beta.vec=c(-1,-1,1,0) )
df$W <- sample(c("A", "B", "C"), nrow(df), replace = TRUE)
WSKS.t(df$Yobs, df$Z, df$W)

Run the code above in your browser using DataLab