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