Description Usage Arguments Value
Create a set of binary covariates with a specific covariate distribution
1 |
z.probs |
if a scalar, assume there is one binary covariate z and the scalar is P(z=1). if z.probs is a vector of length k, there are k static covariates, z1, ..., zk, and the the jth element of the vector is P(zj=1). if z.probs is a matrix with k columns and n.r rows, there are k dynamic covariates z1, ...zk. the (i,j)th element is the probability that the jt unit of the ith covariate is equal to 1 |
n.r |
number of covariate values to generate |
code |
set to NULL if (-1,1) coding is used for the treatments. Set to 0 if (0, 1) is used. |
dataframe with covariates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.