Skip to content

Commit 8ecb469

Browse files
committed
lav_model_hessian(): add lavcache to lav_model_objective() if numerical gradient is used (see issue #430)
1 parent e5d51ce commit 8ecb469

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: lavaan
22
Title: Latent Variable Analysis
3-
Version: 0.6-20.2331
3+
Version: 0.6-20.2332
44
Authors@R: c(person(given = "Yves", family = "Rosseel",
55
role = c("aut", "cre"),
66
email = "Yves.Rosseel@UGent.be",

R/lav_model_hessian.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ lav_model_hessian <- function(lavmodel = NULL,
1616
lavmodel2 <- lav_model_set_parameters(lavmodel, x = x)
1717
lav_model_objective(
1818
lavmodel = lavmodel2,
19-
lavsamplestats = lavsamplestats, lavdata = lavdata
19+
lavsamplestats = lavsamplestats, lavdata = lavdata,
20+
lavcache = lavcache
2021
)[1]
2122
}
2223
x <- lav_model_get_parameters(lavmodel = lavmodel)

R/lav_partable_flat.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ lav_partable_flat <- function(FLAT = NULL, # nolint
763763
lhs = lhs,
764764
op = op,
765765
rhs = rhs,
766-
free = free,
767-
ustart = ustart,
766+
free = free,
767+
ustart = ustart,
768768
block = rep(1, length(rhs)))
769769
lv.marker <- lav_partable_vnames(tmp.list, "lv.marker")
770770
}

0 commit comments

Comments
 (0)