Simulated data

A dataset containing three simulated variables, generated in the example “Simulation: Berkson and classical measurement error alongside missing data”.

Load the data

If you have cloned the repository:

simulated_data <- read.csv("data/simulated_data.csv")

Otherwise you can download the data from GitHub like this:

library(RCurl)

url_simulated_data <- getURL("https://raw.githubusercontent.com/emmaSkarstein/Missing-data-and-measurement-error/master/data/simulated_data.csv")
simulated_data <- read.csv(text = url_simulated_data)

Format

A data frame with 1000 rows and 3 variables:

  • y: response variable, continuous
  • w: covariate with classical and Berkson measurement error, and missing data, continuous
  • z: covariate with no error or missingness, continuous