Repository navigation
update dgp for choice model - #915
Open
NathanielF wants to merge 2 commits into
Open
NathanielF wants to merge 2 commits into
NathanielF wants to merge 2 commits into
Conversation
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
…flow # Conflicts: # examples/case_studies/bayesian_sem_workflow.ipynb # examples/case_studies/bayesian_sem_workflow.myst.md
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.
Match Lavaan Default Identification constraints
This PR brings the specification in line with the standard lavaan::sem() defaults.
Identification constraints
Scale: each factor’s marker loading is fixed at 1.
Disturbances (Ψζ): variances are free and covariances are 0. Six paths plus four variances exactly identify the structural part.
Optional free covariances: they enter through a free_pair_covariances helper. It allows only disjoint pairs and uses ρ = 2·Beta(2,2) − 1, which keeps Ψζ positive definite.
Measurement error (Ψ): uses the same helper. It replaces the shared-cause construction, which left a ridge of 4 parameters per 3 moments.
Mean structure: marker intercepts are fixed at 0, so the latent means α are identified.
Discrete choice: the reference alternative’s intercept and slopes are fixed at 0.
Helpful links