AssignCovariatesNormBinDefault: Create independent covariates by default method

Description Usage Arguments Value Author(s)

View source: R/01.GenerateData.R

Description

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.

Usage

1

Arguments

n

number of individuals to create

p

number of covariates

Value

n x (p+1) data frame including ID and p covariates

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.