Skip to content

Commit

Permalink
Fix for missing scores in case of fiml.
Browse files Browse the repository at this point in the history
Only scores for the first group were reported due to seq_along always evaluating to 1.
  • Loading branch information
jhorzek committed Jul 22, 2024
1 parent d6f7256 commit 9afc450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ctr_estfun.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ lav_scores_ml <- function(ntab = 0L,
score.sigma <- matrix(0, nsub, nvar * (nvar + 1) / 2)
score.mu <- matrix(0, nsub, nvar)

for (p in seq_along(length(M))) {
for (p in seq_len(length(M))) {
## Data
# X <- M[[p]][["X"]]
case.idx <- Mp$case.idx[[p]]
Expand Down

0 comments on commit 9afc450

Please sign in to comment.