Hi Yves, I get an error with parameterEstimates() if I load an object saved from lavaan 0.5-18. Example below.
###################################################################
## Do this with lavaan 0.5-18
library(lavaan)
set.seed(1)
n <- 1000
F <- rnorm(n)
d <- data.frame(x1 = 0.7*F + rnorm(n, 0, sqrt(1 - 0.7^2)),
x2 = 0.7*F + rnorm(n, 0, sqrt(1 - 0.7^2)),
x3 = 0.6*F + rnorm(n, 0, sqrt(1 - 0.6^2)),
x4 = 0.5*F + rnorm(n, 0, sqrt(1 - 0.5^2)))
mod1 <- 'F =~ x1 + x2 + x3 + x4'
sem1 <- sem(mod1, data=d, estimator="MLR",
std.lv=TRUE)
parameterEstimates(sem1) # this works
save(sem1, file="//sonar/seetom/Research/SEM/SEM011_lavaan/sem1.RData")
###################################################################
## Restart, and use lavaan 0.5-19.887
library(lavaan)
load("//sonar/seetom/Research/SEM/SEM011_lavaan/sem1.RData")
sem1 # this works
parameterEstimates(sem1) # error below
Error in `[.data.frame`(LIST, , c("lhs", "op", "rhs", "user", "group", :
undefined columns selected