![]() Gears (in the car) to a factor so that prepareMplusData Here, in the mtcars dataset, we convert the number of Will get a set of dummy codes that can be used in the Mplus syntax. Alternatively, if you use theĭumm圜ode argument for prepareMplusData, you (first level = 1, second level = 2, etc.) and prints out informationĪbout how the levels were converted so that you can use them properly PrepareMplusData converts each level into an integer value Neither keepCols nor dropCols is specified,įor factors and character variables (categorical), Specified by dropCols by included in the data file. Like manner, the second call requests that all variables except those KeepCols be included in the resultant Mplus data file. The first call requests that only the variables specified by ![]() PrepareMplusData( my_data, filename = "C:/Data_Analysis/Prepare Mplus.dat", keepCols= c( "id", "item1", "item3", "item6")) prepareMplusData( my_other_data, filename = "C:/Data_Analysis/Prepare Dropped Mplus.dat", dropCols= c( "baditem1", "baditem2", "baditem7")) # loaded via a namespace (and not attached): # stats graphics grDevices utils datasets methods base ![]() # LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib # BLAS: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.0.dylib
0 Comments
Leave a Reply. |