WSKS.t: WSKS.t

View source: R/helper_stat_calc.R

WSKS.tR Documentation

WSKS.t

Description

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

Usage

WSKS.t(Y, Z, W)

Arguments

Y

Observed outcome vector

Z

Treatment assigment vector

W

A a factor or categorical covariate.

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) )
df$W <- sample(c("A", "B", "C"), nrow(df), replace = TRUE)
WSKS.t(df$Yobs, df$Z, df$W)


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