Skip to content

Commit

Permalink
fix wrong sign for epc values in modindices() if estimator is not ML …
Browse files Browse the repository at this point in the history
…(github issue 401)
  • Loading branch information
yrosseel committed Dec 23, 2024
1 parent 7fcecf6 commit de85bfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: lavaan
Title: Latent Variable Analysis
Version: 0.6-20.2247
Version: 0.6-20.2256
Authors@R: c(person(given = "Yves", family = "Rosseel",
role = c("aut", "cre"),
email = "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions R/lav_modification.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ modindices <- function(object,
# create and fill in mi
if (object@Data@nlevels == 1L) {
N <- object@SampleStats@ntotal
if (object@Model@estimator %in% ("ML")) {
#if (object@Model@estimator %in% ("ML")) {
score <- -1 * score # due to gradient.logl
}
#}
} else {
# total number of clusters (over groups)
N <- 0
Expand Down

0 comments on commit de85bfe

Please sign in to comment.