rmsd: Calculate RMSD

Description Usage Arguments Examples

View source: R/rmsd.R

Description

Calculates the root mean squared deviation.

Usage

1
rmsd(theta1, theta2)

Arguments

theta1

Vector containing the estimated latent traits from the first estimation method.

theta2

Vector containing the estimated latent traits from the second estimation method.

Examples

1
2
3
4
5
6
7
data(SAPA)
twopl_mod <- "F = 1 - 16"
twopl_fit <- mirt(data = SAPA, model = twopl_mod,
                  itemtype = "2PL", SE = TRUE)
latent_mle <- fscores(twopl_fit, method = 'ML', full.scores = TRUE, full.scores.SE = TRUE)
latent_map <- fscores(twopl_fit, method = 'MAP', full.scores = TRUE, full.scores.SE = TRUE)
rmsd(latent_mle, latent_map)

cddesja/hemp documentation built on April 7, 2021, 9:24 p.m.