Skip to content

Commit

Permalink
fix bad state
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Nov 6, 2024
1 parent 1b07118 commit eccd0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/06-LoadPars.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ LoadPars <- function(itemtype, itemloc, lambdas, zetas, guess, upper, fulldata,
item_nfi <- ifelse(!is.null(mixed.design) &&
mixed.design$has_idesign[i], nfixedeffects, 0)
item_nfact <- nfact
if(!mixed.design$has_idesign[i])
if(!is.null(mixed.design) && !mixed.design$has_idesign[i])
item_nfact <- nfact - nfixedeffects


Expand Down

0 comments on commit eccd0b8

Please sign in to comment.