sim.OR: Simulate a dataset with known constant OR

View source: R/sim.R

sim.ORR Documentation

Simulate a dataset with known constant OR

Description

Simulate a dataset with known constant OR

Usage

sim.OR(
  n = 1500,
  p = 2,
  prop_active = 1,
  formula_estimand = ~1,
  formula_A = ~.,
  formula_Y0W = ~.,
  beta = NULL,
  beta_A = NULL,
  beta_Y = NULL
)

Arguments

n

Sample size

p

Dimension of W

prop_active

Proportion of active (nonzero coef) variables


Larsvanderlaan/causalGLM documentation built on April 14, 2022, 12:51 a.m.