# NOT RUN {
# Replicate Table 6 from Lipovetsky & Conklin (2014)
d <- data.frame(
totals = c(7145, 7144, 7144, 7144, 7145, 7145, 7144, 7146, 8166,
7145, 7144, 7144, 7145, 7144, 7145, 7144, 7146),
bests = c(1733, 968, 5218, 2704, 2307, 692, 1816, 689, 2483, 1422,
362, 2589, 4158, 825, 829, 859, 966),
worsts = c(1324, 2139, 113, 1010, 772, 3986, 1438, 2397, 1041, 1538,
4597, 966, 305, 2875, 2256, 2259, 1604)
)
results <- ae_mnl(d, "totals", "bests", "worsts")
(d <- cbind(d, results))
# }
Run the code above in your browser using DataLab