awot_null {cwot} | R Documentation |
Prepare null model for awot.
Description
Prepare null model for awot.
Usage
awot_null(y, tr, x = NULL)
Arguments
y |
- Continuous 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 awot.
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 = rnorm(n)
x = data.frame(x1=rnorm(n))
tr = rbinom(n, 1, 0.5)
nullmod = awot_null(y, tr, x)
[Package cwot version 0.1.0 Index]