<- read.csv("data/bloodpressure.csv") bloodpressure
Bloodpressure data
Repeated systolic blood pressure measurements with measurement error.
A dataset containing a repeated blood pressure measurement along with some other variables for participants in the Third National Health and Nutrition Survey (NHANES III), merged with data from the US National Death Index by Ruth H. Keogh and Jonathan Bartlett.
Load the data
If you have cloned the repository:
Otherwise you can download it from GitHub like this:
library(RCurl)
<- getURL("https://raw.githubusercontent.com/emmaSkarstein/Missing-data-and-measurement-error/master/data/bloodpressure.csv")
url_bloodpressure <- read.csv(text = url_bloodpressure) bloodpressure
Format
A data frame with 6519 rows and 8 variables:
sbp1
: systolic blood pressure (standardized), first measurementsbp2
: systolic blood pressure (standardized), second measurementsex
: Sex (0 = female, 1 = male)age
: Age (standardized)smoke
: Smoking status (0 = no, 1 = yes)diabetes
: diabetes status (0 = no, 1 = yes)d
: censoring status (0 = censored, 1 = observed death due to cardiovascular disease)t
: time until death due to cardiovascular disease occurs