Digit Preference Model
This page offers the link to the R-codes for implementing the model presented in
Camarda, C. G., P. Eilers and J. Gampe (2008)
Modelling General Pattern of Digit Preference
Statistical Modelling 8, 385-401
(link)
Two codes are provided:
- functionsPCLML1.R : a collection of functions useful to estimate the model
- DPexample.R: an example with simulated data
I commented these files as much as possible and I used simple simulated data, but if something is not clear please let me know.