sim_data: Simulating data

Description Usage Arguments Value

Description

Simulating data

Usage

1
2
3
sim_data(ntot, missing = FALSE, incorrect = FALSE, b_G = 0.6,
  b_X = c(0.02, 0.3, -0.12), b_X_Gsize = c(0.04, -2, -3),
  b_X_Gprob = c(-0.01, 0.5, 1), Sigma = diag(4), cond_cov = FALSE)

Arguments

ntot

the number of observation to simulate

missing

logical flag whether missing indicator should be used. Default is FALSE.

b_G

strength parameter for linear association between the covariate "G" and the outcome of interest "Y".

Value

simulated data matrix of size ntot x 4


stepcie/sslcov documentation built on May 30, 2019, 2:39 p.m.