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

[Feature Request]: Option to fix intercepts to zero in mean structure #2223

Closed
1 of 3 tasks
HeikoBreitsohl opened this issue Jul 12, 2023 · 4 comments · Fixed by jasp-stats/jaspFactor#193
Closed
1 of 3 tasks

Comments

@HeikoBreitsohl
Copy link

JASP Version

0.17.2.1

Commit ID

No response

JASP Module

Factor

What analysis are you seeing the problem on?

CFA with mean structure

What OS are you seeing the problem on?

Windows 10

Bug Description

When fitting a CFA with "Model Options -> Include mean structure" activated, JASP includes a table with the indicator intercepts, but not the factor means.

On a related note, it is unclear whether JASP fixes the factor means or some indicator intercepts to zero for identification. It seems to be the former, regardless of how the covariance structure is identified.

Expected Behaviour

Ideally, there would be a table with factor means, after the intercepts table.

When, under "Model identification", selecting...

  • Factor variances, the mean structure should be identified by fixing factor means to zero.
  • Marker variable, the mean structure should be identified by fixing indicator intercepts to zero.
  • Effects coding [Thanks for adding this feature!], the mean structure should be identified by constraining indicator intercepts to average to zero.

Steps to Reproduce

  1. Specify a two factor CFA, using the Political Democracy dataset
  2. Select "Model Options -> Include mean structure" and "Model identification: Marker variable"
  3. No Table with factor means available.

Log (if any)

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.
@github-actions
Copy link

@HeikoBreitsohl, thanks for taking the time to create this issue. If possible (and applicable), please upload to the issue website (#2223) a screenshot showcasing the problem, and/or a compressed (zipped) .jasp file or the data file that causes the issue. If you would prefer not to make your data publicly available, you can send your file(s) directly to us, issues@jasp-stats.org

@juliuspfadt
Copy link
Contributor

@HeikoBreitsohlm thanks for creating this issue. You are right, by default the latent intercepts are fixed to 0. And so far there is no option to change it. I think it makes sense to add this as an option underneath the include mean structure options such as:
Screenshot 2023-07-14 at 09 24 32

@juliuspfadt juliuspfadt changed the title [Bug]: CFA module does not include factor means in the output [Feature Request]: Option to fix intercepts to zero in mean structure Jul 14, 2023
@HeikoBreitsohl
Copy link
Author

@juliuspfadt Thanks for the swift response! This looks great!
Would it be possible to add a third option that corresponds to effects coding?
That could be called something like "Constrain manifest intercepts to average to zero".

@juliuspfadt
Copy link
Contributor

Hi @HeikoBreitsohl, sorry for the late response. Regular work has kept me busy. Do you mean the intercepts of the manifest variables per latent variable should average to zero? That is easy to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants