sim.env.data: Simulates cases and controls

Description Usage Arguments Value Author(s)

Description

Generates data for a binary, quantitative-normal, or quantitative-uniform environmental determinant.

Usage

1
2
sim.env.data(num.obs = NULL, env.model = NULL, env.prev = NULL,
  env.mean = NULL, env.sd = NULL, env.low.lim = NULL, env.up.lim = NULL)

Arguments

num.obs

number of observations to simulate.

env.model

model of the exposure: binary=0, quantitative-normal=1, quantitative-uniform=2.

env.prev

prevalence of the environmental exposure.

env.mean

statisitical man under quantitative-normal model.

env.sd

standard deviation under quantitative-normal model.

env.low.lim

lower limit under quantitative-uniform model.

env.up.lim

upper limit under quantitative-uniform model.

Value

a vector of continuous or binary values.

Author(s)

Gaye A.


agaye/ESPRESSO.ExE documentation built on May 10, 2019, 7:30 a.m.