Tuesday, 15 July 2014

dataset - Reading a CSV file into Mplus -



dataset - Reading a CSV file into Mplus -

i using remote desktop client 2.1.1 on mac connect windows application server serves mplus 6.12. run next script:

title: loading info csv , performing gmm data: file "\\tsclient\macint1 on mike's macbook\users\aron\downloads\output.csv"; variable: names repo_name t03 t04 t05 t06 t07 t08 t09 t10 t11 t12; classes = c (2); analysis: type = mixture; starts = 40 8; model: %overall$% s | t03@0 t04@1 t05@2 t06@3 t07@4 t08@5 t09@6 t10@7 t11@8 t12@9; output: tech1 tech8;

however, when run this, next error message:

*** error number of observations 0. check info , format statement. info file: \\tsclient\macint1\users\mike\github\local\latent_growth_classes\output.csv *** error non-missing blank found in info file @ record #1, field #: 1

i have tried specifying path in multiple ways, providing csv file , without headers, same message. doing wrong? how read csv file mplus?

the first row of info file in mplus has first line of data, no variable names above! hence has this.

9.00,3.00,1.00,1.00,34.00,35.00 0.00,9.00,2.00,1.00,44.00,41.00 . . . . . . . . . . . . . . . . . . 0.00,4.00,3.00,1.00,44.00,33.00 1.00,4.00,3.00,2.00,36.00,37.00

therefore have define names names are statement , of import "remember" exact order of variables (as cannot retrieve them info file). .csv file without headings have open .csv file textpad (or similar) , delete the row of variables , save file again.

note: if smart... utilize cutting instead of delete , paste line of variables in mplus, in way mistakes much less likely!

dataset

No comments:

Post a Comment