README.md

DOI

The simexvsmecor Package

This package for R entails the code to execute a simulation study and the code used to analyse the output of the simulation study, accompanying the manuscript “Random measurement error correction in an exposure by means of simulation-extrapolation and regression calibration when no validation data are available”. The aim of the simulation study is the comparison between the simex and mecor package for measurement error correction in the setting of a replicates study.

Installation

The package can be installed via

devtools::install_github("LindaNab/simexvsmecor", ref = "main")

Quick demo

library(simexvsmecor)
# view input data
data(input)
# run scenenario no. 1 of the simulation study with 100 replicates
run_sim(nrep = 100, scen_no = 1)


LindaNab/simexvsmecor documentation built on Dec. 17, 2021, 1:09 a.m.