cwot_null {cwot} | R Documentation |
Prepare null model for cwot.
Description
Prepare null model for cwot.
Usage
cwot_null(y, tr, x = NULL)
Arguments
y |
- Binary response variable. |
tr |
- Binary treatment variable, 1 for treated, 0 for placebo. |
x |
- Covariates in addition to treatment variable. |
Value
A list of objects needed for cwot.
References
Hong Zhang, Devan Mehrotra and Judong Shen, "AWOT and CWOT for Genotype and Genotype by Treatment Interaction Joint Analysis in Pharmacogenetics GWAS".
Examples
n = 100
y = rbinom(n, 1, 0.3)
x = data.frame(x1=rnorm(n))
tr = rbinom(n, 1, 0.5)
nullmod = cwot_null(y, tr, x)
[Package cwot version 0.1.0 Index]