Skip to contents

A simulated dataset to demonstrate how to set up a model in the case where there are two variables with measurement error.

Usage

mar_data

Format

## `mar_data` A data frame with 1000 rows and 5 columns:

y

Response variable

x

Observed value of covariate, with almost 20 percent missing

x_true

Correct version of x, without missingness

z1

Covariate correlated with x

z2

Covariate correlated with the missingness of x

Source

The dataset is simulated.