Error in extracting EFA parameters

70 views
Skip to first unread message

reout arbel

unread,
Apr 26, 2022, 12:20:08 AM4/26/22
to MplusAutomation
Hi, 

I ran an EFA model and was able to obtain the summary but not parameters. I keep getting the following error (even after I downloaded the new MplusAutomation version)

NAs introduced by coercionError extracting MODEL RESULTS in output file: efa_e.out <simpleError in `[<-`(`*tmp*`, r, 1:length(line), value = line): subscript out of bounds> NULL

The model is below

Thanks so much!
setwd("/Volumes/GoogleDrive/My Drive/Social profiles")


library(MplusAutomation)
library(rhdf5)#not compatible with my R version

p_f[p_f=="NaN"] <- NA
class(p_f)

p_s<-subset(p_f,select=-c(ID))

efa_e  <- mplusObject(
  TITLE = "TWO-LEVEL EXPLORATORY FACTOR ANALYSIS",
  VARIABLE =
"usevar=
 dEmpa_1  dEmpa_2 dEmpa_3
 ;
CLUSTER=id",

  ANALYSIS =
 "type = twolevel EFA 1 2  UW 1 2  UB;
  estimator = MLR;",

  MODEL = "" ,

  PLOT = "type = plot3;",

  OUTPUT = "sampstat standardized residual modindices (3.84);",

 usevariables = colnames(p_s),
  rdata = p_s)



mplusModeler(efa_e,
             hashfilename = FALSE,
             modelout = "efa_e.inp",
             dataout = "mplusdata.dat",
             run =   1L
)






readModels(target = "~/Google Drive/My Drive/Social profiles/efa_e.out")$summaries

 #readModels(target = "~/Google Drive/My Drive/Social profiles/efa_e.out")$parameters
 
 
 readModels("efa_e.out", what="parameters")$parameters$unstandardized

Daniel Morillo Cuadrado

unread,
Apr 27, 2022, 2:02:29 PM4/27/22
to MplusAutomation
Hi Reout. Could you please attach your Mplus output?

--
You received this message because you are subscribed to the Google Groups "MplusAutomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mplusautomati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mplusautomation/09fdb8ec-ccd3-4a37-98bb-34e86db34943n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages