sim.RR: Simulate a dataset with known constant RR

View source: R/sim.R

sim.RRR Documentation

Simulate a dataset with known constant RR

Description

Simulate a dataset with known constant RR

Usage

sim.RR(
  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.