Computes posterior predictive p-values to test model fit.
PPP(fittedModel, M = 1000, nCPU = 4, T2 = TRUE, type = "X2")
fitted latent-trait or beta MPT model (traitMPT
, betaMPT
)
number of posterior predictive samples. As a maximum, the number of posterior samples in fittedModel
is used.
number of CPUs used for parallel sampling. For large models and many participants, this requires considerable computer-memory resources (as a remedy, use nCPU=1
).
whether to compute T2 statistic to check coveriance structure (can take a lot of time). If some participants do not have responses for some trees, (co)variances are computed by pairwise deletion of the corresponding persons.
whether the T1 statistic of expected means is computed using
Person's "X2"
or the likelihood-ratio statistic "G2"
Daniel Heck
Klauer, K. C. (2010). Hierarchical multinomial processing tree models: A latent-trait approach. Psychometrika, 75, 70-98.