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

Fix mxFactorScores() for RAM-specified Matrix Models #373

Open
mhunter1 opened this issue Aug 4, 2023 · 0 comments
Open

Fix mxFactorScores() for RAM-specified Matrix Models #373

mhunter1 opened this issue Aug 4, 2023 · 0 comments
Assignees
Labels

Comments

@mhunter1
Copy link
Contributor

mhunter1 commented Aug 4, 2023

This forum post https://openmx.ssri.psu.edu/node/4871 notes that mxFactorScores() gives the following error message when applied to a RAM matrix model:

Error: In model 'FactorScoresLinearGrowthCurveModelMatrixSpecification' the name 'fscore' is used as a free parameter in 'FactorScoresLinearGrowthCurveModelMatrixSpecification.Score' but as a fixed parameter in 'FactorScoresLinearGrowthCurveModelMatrixSpecification.Score'

The problem is unique to RAM matrix specification. Path specification models work fine. LISREL matrix specification works fine.

My guess is mxFactorScores() is getting confused about latent versus manifest variables. It's probably something to do with dimnames. See this file: R/MxFactorScores.R, and this test script demo/LatentGrowthCurveModel_MatrixRaw.R

@mhunter1 mhunter1 added the bug label Aug 4, 2023
@mhunter1 mhunter1 self-assigned this Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant