We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9a6e1 commit fd8dddcCopy full SHA for fd8dddc
R/utils.R
@@ -396,7 +396,7 @@ Lambdas <- function(pars, Names){
396
tmp <- pars[[i]]
397
lambdas[i,] <- ExtractLambdas(tmp, include_fixed = FALSE) /1.702
398
if(tmp@ncat > 2 && (is(tmp, 'gpcm') || is(tmp, 'nominal')))
399
- lambdas[i,] <- lambdas[i,] * sqrt(tmp@ncat * 1.702)
+ lambdas[i,] <- lambdas[i,] * sqrt((tmp@ncat-1) * 1.702)
400
}
401
dcov <- if(ncol(gcov) > 1L) diag(sqrt(diag(gcov))) else matrix(sqrt(diag(gcov)))
402
lambdas <- lambdas %*% dcov
0 commit comments