Learn R Programming

PCMRS (version 0.1-5)

PCMRS-package: Model Response Styles in Partial Credit Models

Description

Performs PCMRS, a method to model response styles in Partial Credit Models

Arguments

References

Tutz, Gerhard, Schauberger, Gunther and Berger, Moritz (2018): Response Styles in the Partial Credit Model, Applied Psychological Measurement, tools:::Rd_expr_doi("10.1177/0146621617748322")

See Also

PCMRS, person.posterior, tenseness, emotion

Examples

Run this code
# \dontshow{
k <- 4; n <- 80; I <- 4
set.seed(1860)
Y <- as.data.frame(matrix(sample(1:k, I*n, TRUE),nrow = n))
Y <- data.frame(lapply(Y, as.ordered))

mini.ex <- PCMRS(Y, cores = 2)
mini.ex
# }
if (FALSE) {
################################################
## Small example to illustrate model and person estimation
################################################

data(tenseness)

set.seed(5)
samples <- sample(1:nrow(tenseness), 100)
tense_small <- tenseness[samples,1:4]

m_small <- PCMRS(tense_small, cores = 2)
m_small
plot(m_small)

persons <- person.posterior(m_small, cores = 2)
plot(jitter(persons, 100))

################################################
## Example from Tutz et al. 2017:
################################################

data(emotion)
m.emotion <- PCMRS(emotion)
m.emotion

plot(m.emotion)
}

Run the code above in your browser using DataLab