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


tlverse/causalglm documentation built on April 15, 2022, 6:35 p.m.