Question

83 views
Skip to first unread message

Ali Salajeghe

unread,
Apr 30, 2017, 2:18:47 PM4/30/17
to regsem
Dear Professors
I am a student of statistics at Shahrood University of Technology in Iran.
I came To Know You With Your Tremendous Package in R,the regsem.
I encountered with a problem when I used "Ridge" in comparison section. the error specifically is "number of items to replace is not a multiple of replacement length"
I used the command
CV_regsem  Cout, type="Ridge" parspon=c(1:9),n.lambda=15, jump= 0.5)

also what's "dat" in "lav.growth <- growth(mod1,dat,fixed.x=T)" ,(page 10 of regsem: Regularized Structural Equation Modeling)

I really approciate If you could help me to fix this Issue.
Thank you in advance for your kindness.
 kindest regards
Ali Salajegheh

Ross Jacobucci

unread,
Apr 30, 2017, 8:28:44 PM4/30/17
to regsem
Hi Ali,

cv_regsem needs to be specified like the following: cv_regsem(Cout, type="ridge", pars_pen=c(1:9), jump=0.5)

Also, "dat" refers to the dataset used by lavaan to run the model "mod1"

Ross
Reply all
Reply to author
Forward
0 new messages