simsem / semTools

Useful tools for structural equation modeling
75 stars 36 forks source link

measurementInvariance and ordered/WLSMV estimation #6

Closed beamgau closed 10 years ago

beamgau commented 10 years ago

Hi everyone,

i tried to use measurementInvariance() with a multigroup model with ordered indicators and WLSMV-estimator. It seems, that difftest uses in that case unscaled chi-square statistic and i wonder, whether this is the correct behaviour?

anova of the 2 models gives a different result. following this discussion (https://groups.google.com/forum/#!topic/lavaan/SgQkqL369lI) i guess, difftest should rather use anova()?

see this example. If i am right, i guess, i could rewrite the difftest() function, if necessary. best wishes, felix

set.seed(1) library(lavaan) library(semTools) library(mirt) model = "x =~ Comfort + Work + Future + Benefit" Science$group = 1:2

models = measurementInvariance(model, data = Science, ordered = names(Science)[1:4], group="group") anova(models[[3]], models[[2]])

psunthud commented 10 years ago

I am sorry I did not forward the issues from semTools to my email. I was really lost.

The measurementInvariance function does not support the measurement invariance for categorical items now. Lavaan just updated theta parameterization on the previous patch. I will try to update this function for categorical items.

beamgau commented 10 years ago

no problem! thanks a lot, felix


Von: Sunthud Pornprasertmanit [notifications@github.com] Gesendet: Montag, 21. Juli 2014 21:39 An: simsem/semTools Cc: Fischer, Felix Betreff: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

I am sorry I did not forward the issues from semTools to my email. I was really lost.

The measurementInvariance function does not support the measurement invariance for categorical items now. Lavaan just updated theta parameterization on the previous patch. I will try to update this function for categorical items.

— Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-49654721.

psunthud commented 10 years ago

I just wrote the measurementInvarianceCat function for measurement invariance for categorical indicators. Please check our 0.4-5 version of semTools in the builds folder in the git. Please let me know if you have any questions or problems.

beamgau commented 10 years ago

Hi,

i just wanted to point you to two issues at the github/semtools website. would be great if you could look into that.

best wishes, felix

-----Ursprüngliche Nachricht----- Von: Fischer, Felix Gesendet: Dienstag, 22. Juli 2014 14:31 An: simsem/semTools Betreff: AW: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

no problem! thanks a lot, felix


Von: Sunthud Pornprasertmanit [notifications@github.com] Gesendet: Montag, 21. Juli 2014 21:39 An: simsem/semTools Cc: Fischer, Felix Betreff: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

I am sorry I did not forward the issues from semTools to my email. I was really lost.

The measurementInvariance function does not support the measurement invariance for categorical items now. Lavaan just updated theta parameterization on the previous patch. I will try to update this function for categorical items.

Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-49654721.

psunthud commented 10 years ago

Dear Felix,

Thank you for letting me know. I did not get the email notification so I did not see it. I did change the notification but it is strange that I did not receive the email. I will take care of it very soon.

Sunthud

Sunthud Pornprasertmanit [Description: cid:image001.gif@01CB0736.650C3B80] Graduate Student in Quantitative Psychology Program Research Assistant at the Center for Research Methods and Data Analysis University of Kansas Email: psunthud@ku.edu Personal Website: http://www.people.ku.edu/~s044p855/http://www.people.ku.edu/%7Es044p855/ CRMDA Website: http://crmda.ku.eduhttp://crmda.ku.edu/ http://www.people.ku.edu/%7Es044p855/


From: beamgau [notifications@github.com] Sent: Monday, August 25, 2014 8:00 AM To: simsem/semTools Cc: Pornprasertmanit, Sunthud Subject: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

Hi,

i just wanted to point you to two issues at the github/semtools website. would be great if you could look into that.

best wishes, felix

-----Ursprüngliche Nachricht----- Von: Fischer, Felix Gesendet: Dienstag, 22. Juli 2014 14:31 An: simsem/semTools Betreff: AW: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

no problem! thanks a lot, felix


Von: Sunthud Pornprasertmanit [notifications@github.com] Gesendet: Montag, 21. Juli 2014 21:39 An: simsem/semTools Cc: Fischer, Felix Betreff: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

I am sorry I did not forward the issues from semTools to my email. I was really lost.

The measurementInvariance function does not support the measurement invariance for categorical items now. Lavaan just updated theta parameterization on the previous patch. I will try to update this function for categorical items.

Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-49654721.

— Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-53260394.

beamgau commented 10 years ago

thanks a lot! best wishes, felix

Von: Sunthud Pornprasertmanit [mailto:notifications@github.com] Gesendet: Montag, 25. August 2014 17:17 An: simsem/semTools Cc: Fischer, Felix Betreff: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

Dear Felix,

Thank you for letting me know. I did not get the email notification so I did not see it. I did change the notification but it is strange that I did not receive the email. I will take care of it very soon.

Sunthud

Sunthud Pornprasertmanit [Description: cid:image001.gif@01CB0736.650C3B80] Graduate Student in Quantitative Psychology Program Research Assistant at the Center for Research Methods and Data Analysis University of Kansas Email: psunthud@ku.edumailto:psunthud@ku.edu Personal Website: http://www.people.ku.edu/~s044p855/http://www.people.ku.edu/%7Es044p855/http://www.people.ku.edu/~s044p855/%3chttp:/www.people.ku.edu/%7Es044p855/ CRMDA Website: http://crmda.ku.eduhttp://crmda.ku.edu/http://crmda.ku.edu%3chttp:/crmda.ku.edu/ http://www.people.ku.edu/%7Es044p855/


From: beamgau [notifications@github.com] Sent: Monday, August 25, 2014 8:00 AM To: simsem/semTools Cc: Pornprasertmanit, Sunthud Subject: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

Hi,

i just wanted to point you to two issues at the github/semtools website. would be great if you could look into that.

best wishes, felix

-----Ursprüngliche Nachricht----- Von: Fischer, Felix Gesendet: Dienstag, 22. Juli 2014 14:31 An: simsem/semTools Betreff: AW: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

no problem! thanks a lot, felix


Von: Sunthud Pornprasertmanit [notifications@github.com] Gesendet: Montag, 21. Juli 2014 21:39 An: simsem/semTools Cc: Fischer, Felix Betreff: Re: [semTools] measurementInvariance and ordered/WLSMV estimation (#6)

I am sorry I did not forward the issues from semTools to my email. I was really lost.

The measurementInvariance function does not support the measurement invariance for categorical items now. Lavaan just updated theta parameterization on the previous patch. I will try to update this function for categorical items.

Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-49654721.

— Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-53260394.

— Reply to this email directly or view it on GitHubhttps://github.com/simsem/semTools/issues/6#issuecomment-53277475.