-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add structural invariance and meanstructure identification options #193
Conversation
330ce27
to
a596472
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unit tests were already failing before hand, but the failures are in EFA/PCA; the ones for CFA all pass, so it should be good to merge (and update the tests in a different PR).
Otherwise looks good, it seems to work. Just a little code suggestion, fee free to merge after fixing it
R/confirmatoryfactoranalysis.R
Outdated
# cfaResult[["lav"]] <- try(lavaan::lavaan( | ||
# model = mod, | ||
# data = dataset, | ||
# group = grp, | ||
# group.equal = geq, | ||
# meanstructure = options$meanStructure, | ||
# se = cfaResult[["spec"]]$se, | ||
# std.lv = options$modelIdentification == "factorVariance", | ||
# auto.fix.first = options$modelIdentification == "markerVariable", | ||
# orthogonal = options$factorsUncorrelated, | ||
# effect.coding = ifelse(options$modelIdentification == "effectsCoding", "loadings", FALSE), | ||
# int.ov.free = TRUE, | ||
# int.lv.free = FALSE, | ||
# auto.fix.single = TRUE, | ||
# auto.var = TRUE, | ||
# auto.cov.lv.x = TRUE, | ||
# auto.th = TRUE, | ||
# auto.delta = TRUE, | ||
# auto.cov.y = TRUE, | ||
# mimic = options$packageMimiced, | ||
# estimator = estimator, | ||
# missing = ifelse(options$naAction == "twoStageRobust", "robust.two.stage", | ||
# ifelse(options$naAction == "twoStage", "two.stage", options$naAction)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this can go away? :)
I think the tests fail because of yet another change in |
a596472
to
350ec6c
Compare
structural invariance:
fixes jasp-stats/jasp-issues#2378
meanstructure:
fixes jasp-stats/jasp-issues#2223