Chi-Square Difference in WLSMV
Message/Author
 Tan Teck Kiang posted on Thursday, July 06, 2006 - 12:06 am
Hi Bengt

May I know how to calculate chi-square difference test from WLSMV estimator? Thanks.
 Linda K. Muthen posted on Wednesday, July 12, 2006 - 1:55 am
Use the DIFFTEST option of the ANALYSIS command. See the website for a technical description.
 Emma Sterrett posted on Monday, April 27, 2009 - 6:51 am
Hi,

I'm trying to obtain a chi-squre difference test using DIFFTEST for multigroup analyses using WLSMV. However, I keep getting an error message saying

*** WARNING in SAVEDATA command
(Err#: 9)
Error opening DIFFTEST save file:
deriv1.dat
DIFFTEST will not be saved.

Here is my syntax. Can you tell me what is wrong? Thank you!:

Title: HW 3 Step 1
Data: file=L:\ES\hw3newf.dat;
Variable:
Names = GEN AIDEDUC DEFENSE ECONOTHR GATHINTE HEALTHCA HOMESEC MILOTHRN
PROGVIOL SOCSEC;
Usevar = GEN AIDEDUC DEFENSE ECONOTHR GATHINTE HEALTHCA HOMESEC MILOTHRN
PROGVIOL SOCSEC;
Categorical = AIDEDUC DEFENSE ECONOTHR GATHINTE HEALTHCA HOMESEC MILOTHRN
PROGVIOL SOCSEC;
Grouping = GEN (0 = male 1 = female);
Missing = all (-9);
Analysis:
parameterization = theta;
type = mgroup;
Model:
DOMCON BY AIDEDUC@1 HEALTHCA PROGVIOL SOCSEC;
INTCON BY DEFENSE @1 GATHINTE HOMESEC ECONOTHR MILOTHRN;
DOMCON with INTCON;
Model female:
DOMCON BY HEALTHCA PROGVIOL SOCSEC;
INTCON BY GATHINTE HOMESEC ECONOTHR MILOTHRN;
Savedata: Difftest is deriv1.dat;
Output: standardized tech1 tech4;
 Linda K. Muthen posted on Monday, April 27, 2009 - 7:47 am
It sounds like you are trying to open a file on a drive that you don't have permission on. If you can't solve this, please send your input, data, output, and license number to support@statmodel.com.