Skip to content

update dgp for choice model - #915

Open
NathanielF wants to merge 2 commits into
pymc-devs:mainfrom
NathanielF:nf_improve_sem_workflow
Open

NathanielF wants to merge 2 commits into
pymc-devs:mainfrom
NathanielF:nf_improve_sem_workflow

Conversation

@NathanielF

@NathanielF NathanielF commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
@review-notebook-app

Copy link
Copy Markdown

Review Notebooks

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
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.

1 participant