Skip to content

Add composite/formative construct support to modsem_pi - #140

Merged
Kss2k merged 3 commits into
mainfrom
composites-pi
May 15, 2026
Merged

Add composite/formative construct support to modsem_pi#140
Kss2k merged 3 commits into
mainfrom
composites-pi

Conversation

@Kss2k

@Kss2k Kss2k commented May 15, 2026

Copy link
Copy Markdown
Owner
  • Fully-composite interaction terms (all components defined with <) are now modelled as composites too (XZ < x1z1 + ... instead of =~)
  • Residual covariances are skipped for composite interaction terms by default; toggle with the new composite.int.res.cov argument
  • Mean-structure constraint (constrained.prod.mean) is skipped for composite interaction terms, matching UCA's intent for latent products
  • method="ca" now errors when any composite variable appears in an interaction term (mixed or fully composite)
  • Linear composites not involved in any interaction are passed through unchanged for all PI methods
  • Rename test_formative.R -> test_composites_da.R; add test_composites_pi.R with 27 tests for the new behaviour

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 686709e3e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread R/modsem_pi.R Outdated
@Kss2k
Kss2k merged commit 5ccf34a into main May 15, 2026
6 checks passed
@Kss2k
Kss2k deleted the composites-pi branch May 15, 2026 15:11
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