Description Usage Arguments Value Author(s)
View source: R/01.GenerateData.R
The first covariate is a Normal(mean1, sd1) random variable, whereas the other covariates are Bernoulli(p) random variables where p's are specified by the elements of the pp vector.
1 | AssignCovariatesNormBin(n, mean1, sd1, pp)
|
n |
number of individuals to create |
mean1 |
mean for first continuous normal covariate |
sd1 |
sd for first continuous normal covariate |
pp |
vector of prevalences for other Bernoulli covariates |
n x (m+1) data frame including ID and m covariates
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.