[jaspSem] Fix constraint preventing bootstrap with WLSMV estimator when...#362
Open
sisyphus-jasp wants to merge 1 commit into
Open
[jaspSem] Fix constraint preventing bootstrap with WLSMV estimator when...#362sisyphus-jasp wants to merge 1 commit into
sisyphus-jasp wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #362 +/- ##
==========================================
+ Coverage 61.67% 61.69% +0.02%
==========================================
Files 13 13
Lines 6437 6449 +12
==========================================
+ Hits 3970 3979 +9
- Misses 2467 2470 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
We need to be careful about hidden changes to the options that are not communicated to the user. There either needs to be a prominent note under the main table explaining the change, restrict the QML options directly, or we should just set an error in the analalysis directly (explaining that those options are not available together) |
FBartos
requested changes
Feb 28, 2026
FBartos
left a comment
Contributor
There was a problem hiding this comment.
this should be handled in QML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes: jasp-stats/jasp-issues#4001
Fix: Constraint preventing bootstrap with WLSMV estimator when using binary mediators
What was wrong (root cause)
orderedargument to be treated as categoricalWhat was changed
In
R/sem.R, function.semOptionsToLavOptions():Added automatic switch from WLSMV to DWLS when bootstrap is selected:
estimator == "wlsmv"anderrorCalculationMethod == "bootstrap", automatically switch to"dwls"Added detection of binary variables:
orderedargument so they're treated as categoricalVerification
Caveats
Implementation Plan
Fix: Constraint preventing bootstrap with WLSMV estimator when using binary mediators
Root Cause
orderedargument to lavaan for binary endogenous variablesProposed Changes
In
R/sem.R:orderedargument to lavaan call when using DWLS/WLSMV estimatorsFiles to modify:
R/sem.R- add validation logic in.semRun()or.semGetFit()Changes:
In
.semOptions()(around line 429), add code to:lavOptions[["ordered"]]for DWLS/WLSMV estimatorsIn
.semOptions()or before, add logic to:Expected Test Impact
Fix constraint preventing bootstrap with WLSMV estimator when using binary mediators, likely by allowing DWLS estimator with categorical endogenous variables or enabling bootstrap for WLSMV
Attachment files available in: /workspace/attachment/
Files: Doc7.docx
Test Results
Automated Code Review
Approved after 1 review iteration(s).