The very first code example from "DAKS: An R Package for Data Analysis Methods in Knowledge Space Theory" in Journal of Statistical Software, 37(2), 1–31.