Dear Statalist,
I am trying to use the runmplus to generate a confirmatory factor analysis and encountered an error with runmplus_load_savedata which I did not understand at all.
The codes ran perfectly. But after some respondents were dropped, an error occurred after runmplus_load_savedata.
The codes remain the same; the only change was that I deleted some respondents. The variables that I used to drop those respondents were not involved in runmplus codes.
The case in which some respondents were dropped
I have read the help files many times and still have not got a clue.
I appreciate any suggestions on why the error happened and how to fix it.
PS: I am using Stata 13 MP, and the package runmplus is up to date.
I am trying to use the runmplus to generate a confirmatory factor analysis and encountered an error with runmplus_load_savedata which I did not understand at all.
The codes ran perfectly. But after some respondents were dropped, an error occurred after runmplus_load_savedata.
The codes remain the same; the only change was that I deleted some respondents. The variables that I used to drop those respondents were not involved in runmplus codes.
Code:
. use temp1, clear . qui runmplus s007 d018 d022 d057 d059 , idvariable(s007) /// > categorical(d018 d022 d057 d059) /// > ANALYSIS(TYPE = general; ) model(f1 by d018 d022 d057 d059) /// > savedata(save=fscores; file=c:\trash\trash.dat) savelogfile(c:\trash\trash) . runmplus_load_savedata , out(c:/trash/trash.out) clear
Code:
. use temp1, clear . keep if s003==50 | x048==356003 | x048==356004 | x048==356008 | x048==356011 | /// > x048==356017 (1303 observations deleted) . qui runmplus s007 d018 d022 d057 d059 , idvariable(s007) /// > categorical(d018 d022 d057 d059) /// > ANALYSIS(TYPE = general; ) model(f1 by d018 d022 d057 d059) /// > savedata(save=fscores; file=c:\trash\trash.dat) savelogfile(c:\trash\trash) . runmplus_load_savedata , out(c:/trash/trash.out) clear invalid syntax r(198); end of do-file
I appreciate any suggestions on why the error happened and how to fix it.
PS: I am using Stata 13 MP, and the package runmplus is up to date.
Comment