Skip to content

Commit

Permalink
forgot the constant
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Dec 15, 2024
1 parent 8f12f95 commit 8f9a6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ Lambdas <- function(pars, Names){
tmp <- pars[[i]]
lambdas[i,] <- ExtractLambdas(tmp, include_fixed = FALSE) /1.702
if(tmp@ncat > 2 && (is(tmp, 'gpcm') || is(tmp, 'nominal')))
lambdas[i,] <- lambdas[i,] * sqrt(tmp@ncat-1)
lambdas[i,] <- lambdas[i,] * sqrt(tmp@ncat * 1.702)
}
dcov <- if(ncol(gcov) > 1L) diag(sqrt(diag(gcov))) else matrix(sqrt(diag(gcov)))
lambdas <- lambdas %*% dcov
Expand Down

0 comments on commit 8f9a6e1

Please sign in to comment.