10 October 2019 2 2K Report

I'm running Mplus-5 for latent class analysis and I would like to save the output of univariate distibution fit by class as a csv file to analyze in R (I'm more used to R). I have tried to use the SAVEDATA: command to try to accomplish that but I failed. This is the last code I tried:

TITLE: LCA DATA: File is "C:/Users/wang/Desktop/R/MPLUSDATAonlylogCRP.txt"; VARIABLE: Names are ID sexo idade LOGCRP fum MDIAB MHAS MCOR MINF MDERR MOUT MTIR DEPMOOD IRRIT LOINT WLOSS WGAIN INSOM HYSOM MOTORR MOTORA FATIG USELESS GUILT IMPTHINK INDEC DEATHOS SUICI SPECPLAN SUICATT FUNCIMP DRUPHY MOURN ; missing are all (999); CLASSE = c(3); USEVAR are LOGCRP sexo DEPMOOD IRRIT LOINT WLOSS WGAIN INSOM HYSOM MOTORR MOTORA FATIG USELESS GUILT IMPTHINK INDEC DEATHOS SUICI SPECPLAN SUICATT FUNCIMP DRUPHY MOURN; categorical are sexo-MOURN; IDVARIABLE IS ID; ANALYSIS: TYPE = MIXTURE; STITERATIONS = 100; ALGORITHM=INTEGRATION; MODEL: %overall% c ON LOGCRP; OUTPUT: TECH1 TECH8 TECH10 TECH11 RESIDUAL STANDARDIZED CINTERVAL; SAVEDATA: FILE IS "C:\Users\wang\Downloads\output3class.csv"; FORMAT IS FREE; RESULTS ARE "C:\Users\wang\Downloads\outputResults.csv"; ESTIMATES ARE "C:\Users\wang\Downloads\outputEstimates.csv"; SWMATRIX IS "C:\Users\wang\Downloads\outputmatrix.csv"; SAMPLE IS "C:\Users\wang\Downloads\outputSAMPLE.csv"; DIFFTEST IS "C:\Users\wang\Downloads\outputDIFFTEST.csv"; TECH3 IS "C:\Users\wang\Downloads\outputTECH3.csv"; TECH4 IS "C:\Users\wang\Downloads\outputTECH4.csv"; BASEHAZARD IS "C:\Users\wang\Downloads\outputBASEHAZARD.csv"; RESPONSE IS "C:\Users\wang\Downloads\outputRESPONSE.csv"; SAVE = CPROBABILITIES;

The reason for so many lines in SAVEDATA: is I tried every command I found in the Mplus manual trying to discover if any of them was what I needed.

More Caio Alves's questions See All
Similar questions and discussions