Description Slots Author(s) Examples
An S4 class to assemble raw data, e.g. milestones responses
ddi
Individual response data, ddi
instrument
Stef van Buuren 2020
1 2 3 4 5 6 7 8 9 10 11 12 | # create object with DDI
data <- data.frame(age = c(0.0821, 0.159, 0.255),
k1430 = c(1, NA, NA),
k1431 = c(2, NA, NA),
k1437 = c(3, 1, 1),
k1438 = c(0, 1, 1),
k1439 = c(0, 1, 1))
map <- data.frame(from = c("k1430", "k1431", "k1437", "k1438", "k1439"),
to = c(879, 927, 928, 881, 883))
z <- new("individualRW",
ddi = new("ird", mst = data, map = map, instrument = "ddi"))
z
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.