sim.env.data: Simulates cases and controls

View source: R/sim.env.data.R

sim.env.dataR Documentation

Simulates cases and controls

Description

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

Usage

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.


kwesterman/ESPRESSO.GxE.RV documentation built on Aug. 27, 2023, 4:44 a.m.