The mecor Package

This package for R implements measurement error correction methods for measurement error in a continuous covariate or outcome in a linear model with a continuous outcome.

Installation

The package can be installed via

devtools::install_github("LindaNab/mecor", build_vignettes = TRUE)

Quick demo

library(mecor)
# load the internal covariate validation study
data("vat", package = "mecor")
head(vat)
# correct the biased exposure-outcome association
mecor(ir_ln ~ MeasError(substitute = wc, reference = vat) + age + sex + tbf, data = vat, method = "standard")

More examples

Browse the vignettes of the package for more information.

browseVignettes(package = "mecor")

References

Key reference

References to methods implemented in the package