Skip to content
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

Merged
merged 5 commits into from
Nov 5, 2023

Conversation

juliuspfadt
Copy link
Collaborator

@juliuspfadt juliuspfadt commented Nov 3, 2023

structural invariance:
fixes jasp-stats/jasp-issues#2378

meanstructure:
fixes jasp-stats/jasp-issues#2223

@juliuspfadt juliuspfadt force-pushed the interceptOption branch 3 times, most recently from 330ce27 to a596472 Compare November 3, 2023 16:05
Copy link
Member

@Kucharssim Kucharssim left a 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

Comment on lines 217 to 239
# 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))
Copy link
Member

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? :)

@juliuspfadt
Copy link
Collaborator Author

I think the tests fail because of yet another change in psych but I will have to get to the bottom of this some other time

@juliuspfadt juliuspfadt merged commit 96406cb into jasp-stats:master Nov 5, 2023
2 of 5 checks passed
@juliuspfadt juliuspfadt deleted the interceptOption branch November 5, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: About MGCFA [Feature Request]: Option to fix intercepts to zero in mean structure
2 participants