Skip to content

Instantly share code, notes, and snippets.

View kjosey's full-sized avatar

Kevin Josey kjosey

  • Colorado School of Public Health
  • Aurora, CO
View GitHub Profile
@kjosey
kjosey / simex_cov.R
Created November 10, 2022 17:34
Direct SIMEX with Mismeasured Covariate
# Y = outcome
# A = exposure
# Z = covariate
# W = mismeasured covariate data
# family = outcome distribution
# degree = polynomial function to extrapolate
# mc.cores = faster SIMEX with multicore processing?
# n.boot = number of bootstrap resamples
# tau2 = estimated measurement error variance