# NOT RUN {
## first preparing an Mplus output data
data(example1) # loading fictional example correlation matrix for fixing
Mplus_esyn(N = 300, Cor = example1)
## !!! now first open the 'example1.inp' with Mplus and click run !!!
##### not run until Mplus is installed on your system #####
# generating an example Mplus syntax referring to a correlation data
# stored in the already existing file 'example3'
# for projection of 5 personality dimensions into the circumplex
data(example3) # loading fictional example correlation matrix with add. constr.
# }
# NOT RUN {
Mplus_psyn(N = 300, Cor = example3,M = 5, mpluserg = "example1.out")
# }
# NOT RUN {
################################################################
### clean up work directory
file.remove("example1.inp") # remove generated Mplus syntax from work dir.
file.remove("example1.dat") # remove generated cor. data from work dir.
# }
Run the code above in your browser using DataLab