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

[Bug]: Error in diag(scales) %*% truevar: non-conformable arguments #2294

Open
2 of 3 tasks
saggnev opened this issue Sep 19, 2023 · 15 comments
Open
2 of 3 tasks

[Bug]: Error in diag(scales) %*% truevar: non-conformable arguments #2294

saggnev opened this issue Sep 19, 2023 · 15 comments
Assignees
Labels
Bug: Medium Bugs that don't influence the basic function of the app, but it's better to fix them at some point. Module: jaspFactor

Comments

@saggnev
Copy link

saggnev commented Sep 19, 2023

JASP Version

0.18.0

Commit ID

No response

JASP Module

Factor

What analysis are you seeing the problem on?

Confirmatory factor analysis

What OS are you seeing the problem on?

Windows 10

Bug Description

When I check Reliability (under Additional Output) the right panel is grayed-out and the attached is displayed.
image_2023-09-19_135424920

Expected Behaviour

Not sure because this was the first time I tried it. But, I assume that it should show one or more measures of construct reliability.

Steps to Reproduce

  1. Open a CSV file with multiple columns associated with 2 or more scales.
  2. Select Confirmatory Factor Analysis.
  3. Select the columns into the factors.
  4. Click on Additional Output and check Reliability.

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.
@juliuspfadt
Copy link
Contributor

@saggnevm thanks for reporting this bug. I suspect the issue is within the semTools package. Unfortunately, without the data file and the model syntax, I cannot find out what is going wrong. Any chance you could share that?

@saggnev
Copy link
Author

saggnev commented Sep 20, 2023 via email

@juliuspfadt
Copy link
Contributor

ah well, I was imprecise about the requirements. So what I need is a screenshot of how you specify the factors. And you probably tried attaching the data to an email. That does not work. You have to upload to the GitHub website where you made the issue.

@saggnev
Copy link
Author

saggnev commented Sep 20, 2023

Construct validity.csv
Factors

@juliuspfadt
Copy link
Contributor

Thanks :) so this is an issue in the r-package semTools, which we use to compute the reliability. I have made an issue at their GitHub site simsem/semTools#130. Let's see how that works out. For the time being I can only advise you to treat your variables as quasi-continuous. That means, you may change the scale of these in JASP to "scale" and the analysis should run smoothly.

@juliuspfadt
Copy link
Contributor

Once the new semTools version is on CRAN this issue will be fixed.

@saggnev
Copy link
Author

saggnev commented Sep 21, 2023 via email

@saggnev
Copy link
Author

saggnev commented Sep 21, 2023 via email

@juliuspfadt
Copy link
Contributor

see https://jasp-stats.org/getting-started/ "change variable types"

@saggnev
Copy link
Author

saggnev commented Sep 22, 2023 via email

@tomtomme
Copy link
Member

tomtomme commented Feb 9, 2024

@saggnev
Can you re-test this with jasp 0.19 once that is released?
Thx!

@tomtomme tomtomme added the Waiting for requester If waiting for a long time it is reasonable to close an issue label Feb 9, 2024
@tomtomme tomtomme removed the Bug label Feb 16, 2024
@tomtomme tomtomme closed this as completed Mar 1, 2024
@SoLarStud
Copy link

SoLarStud commented Jun 8, 2024

Same problem, sorry, this is my first time on GitHUb so I don't know if I'm doing my request properly.
I'm on Windows 10, Jasp 0.18.3

Error Message :
This analysis terminated unexpectedly.
Error in diag(scales) %*% truevar: non-conformable arguments
Stack trace
tryCatchOne(expr, names, parentenv, handlers[[1]])
doTryCatch(return(expr), name, parentenv, handler)
withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)
analysis(jaspResults = jaspResults, dataset = dataset, options = options)
.cfaTableReliability(jaspResults, options, cfaResult)
semTools::compRelSEM(cfaResult[['lav']], return.total = TRUE)
omegaCat(truevar = commonCov, denom = totalCov, threshold = threshold[[b]][myIndNames], scales = latScales[[b]][myIndNames])

Changing the variable type from ordinal to scale, as suggested above, makes the calculation of alphas and omegas work, but it changes all the fit indexes, so I don't think that really fixes the problem. I can't do my CFA properly and get the reliabilities :-(

@tomtomme
Copy link
Member

tomtomme commented Jun 9, 2024

This is probably fixed in the upcoming version 0.19. if you need this now you can test it via a nightly build
https://static.jasp-stats.org/Nightlies/

@SoLarStud
Copy link

Thank you so much for your answer. Seems like a Christmas present to me. Cant's try it right now, but I'll try it this week and will let you know. Many thanks.

@juliuspfadt
Copy link
Contributor

It is not fixed, because semTools has not yet updated on CRAN.

@juliuspfadt juliuspfadt reopened this Jun 25, 2024
@tomtomme tomtomme added Bug: Medium Bugs that don't influence the basic function of the app, but it's better to fix them at some point. and removed Waiting for requester If waiting for a long time it is reasonable to close an issue labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Medium Bugs that don't influence the basic function of the app, but it's better to fix them at some point. Module: jaspFactor
Projects
None yet
Development

No branches or pull requests

4 participants