rpf.rescale {rpf} | R Documentation |
Rescale item parameters
Description
Adjust item parameters for changes in mean and covariance of the latent distribution.
Usage
rpf.rescale(m, param, mean, cov)
Arguments
m |
item model |
param |
item parameters |
mean |
vector of means |
cov |
covariance matrix |
Examples
spec <- rpf.grm()
p1 <- rpf.rparam(spec)
testPoint <- rnorm(1)
move <- rnorm(1)
cov <- as.matrix(rlnorm(1))
Icov <- solve(cov)
padj <- rpf.rescale(spec, p1, move, cov)
pr1 <- rpf.prob(spec, padj, (testPoint-move) %*% Icov)
pr2 <- rpf.prob(spec, p1, testPoint)
abs(pr1 - pr2) < 1e9
[Package rpf version 1.0.14 Index]