jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
55 stars 29 forks source link

JASP results DWLS - Discrepancies with Lavaan #1259

Open bruno-fd opened 3 years ago

bruno-fd commented 3 years ago

Hello all,

I´m trying to figure out why fit indexes using Robust DWLS in JASP are, in general so good! And why they are so discrepant in comparison to lavaan results using WLSMV.

When we request WLSMV in lavaan, it comes out with two colums (DWLS and Robust). So, If im not wrong, lavaan collumn 'robust' should be the same of JASP Robust DWLS, or am I missing something? Does anyone has any tip on this?

Thanks in advance.

I believe that part of this result is due to the fact that JASP still does not allow categorical variables yet.

If that´s true, than I have another question: is is 'correct' to use DWLS in 'metric' variables?

Thanks,

Bruno

platjavi commented 3 years ago

Hello, i have a problem with the program on linux and Windows, when i try to do a clasical one sample t-test I get a message that says the following: Known bug: computed effect sizes ignore the test value. Could you help me to solve the problem?

Javier

boutinb commented 3 years ago

Hello, i have a problem with the program on linux and Windows, when i try to do a clasical one sample t-test I get a message that says the following: Known bug: computed effect sizes ignore the test value. Could you help me to solve the problem?

Javier

Hello @platjavi If you have an issue, please make a new one, and don't use an existing one: we use GitHub issues precisely to organize the issues. The warning you see is just to say that we know there is a bug in this analysis, and that will be fixed in the next release.

EJWagenmakers commented 3 years ago

The bug is discussed in various places on this GitHub page. @AlexanderLyNL could you point to a few relevant entries?

AlexanderLyNL commented 3 years ago

The following provides some background: https://github.com/jasp-stats/jasp-issues/issues/1173

boutinb commented 3 years ago

This issue is about a Lavaan problem from @bruno-fd. If @platjavi wants to add some comments, he should make another issue. @Kucharssim could you answer the Lavaan problem?

LSLindeloo commented 1 year ago

@bruno-fd

I assume the following is the reason for these discrepancies:

For the DWLS and ULS estimators, lavaan also provides ‘robust’ variants: WLSM, WLSMVS, WLSMV, ULSM, ULSMVS, ULSMV. Note that for the robust WLS variants, we use the diagonal of the weight matrix for estimation, but we use the full weight matrix to correct the standard errors and to compute the test statistic.

I will add the robust estimators to all analyses that use lavaan, so you can expect these in the next release!

LSLindeloo commented 1 year ago

@bruno-fd I think I have figured out the issue;

so... WLSMV is DWLS estimation with robust standard errors and a scaled and shifted test statistic.

However, when the additional fit indices were requested, the non-scaled and shifted indices were displayed.

I have now changed this, such that the fit indices show the 'scaled and shifted' values when the selected model test is "scaled and shifted".

I hope this provides some clarification.

If you have any questions, feel free to ask!

Lorenzo

tomtomme commented 4 months ago

@bruno-fd Just to let you know, there is active work going on to fix this, but sometimes such things need a "bit" longer...