# NOT RUN {
## first prepare an Mplus syntax
data(example2) # loading fictional example correlation matrix
Mplus_esyn(N = 300, Cor = example2)
## !!! now first open the data example2.inp with Mplus and click run !!!
##### not run until Mplus is installed on your system #####
# }
# NOT RUN {
Mplus_fit("example2.out")
# }
# NOT RUN {
################################################################
### clean up work directory
file.remove("example2.inp") # remove generated Mplus syntax from work dir.
file.remove("example2.dat") # remove generated cor. data from work dir.
# }
Run the code above in your browser using DataLab