rpf.rescale function

Rescale item parameters

Rescale item parameters

Adjust item parameters for changes in mean and covariance of the latent distribution.

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