Learn R Programming

cwot (version 0.1.0)

cwot_null: Prepare null model for cwot.

Description

Prepare null model for cwot.

Usage

cwot_null(y, tr, x = NULL)

Value

A list of objects needed for cwot.

Arguments

y

- Binary response variable.

tr

- Binary treatment variable, 1 for treated, 0 for placebo.

x

- Covariates in addition to treatment variable.

References

Hong Zhang, Devan Mehrotra and Judong Shen, "AWOT and CWOT for Genotype and Genotype by Treatment Interaction Joint Analysis in Pharmacogenetics GWAS".

Examples

Run this code
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)

Run the code above in your browser using DataLab