a_sem a_triItem_1 0.7188273 0.8250552Item_2 0.7355265 0.7230608Item_3 0.9084112 0.8899989Item_4 0.6917957 0.6886588Item_5 0.6194848 0.6575904b_sem b_triItem_1|t1 -3.6782281 -3.3607460Item_2|t1 -1.3862522 -1.3695513Item_3|t1 -0.2827214 -0.2798928Item_4|t1 -1.8995476 -1.8657302Item_5|t1 -3.2898952 -3.1229745
lavaan.lsat6.2pl.model.2D <-'Theta1 =~ l11*Item_1 + l12*Item_2 + l13*Item_3 + l14*Item_4 + l15*Item_5Theta2 =~ l21*Item_1 + l22*Item_2 + l23*Item_3 + l24*Item_4 + l25*Item_5Item_1 | th1 *t1Item_2 | th2 *t1Item_3 | th3 *t1Item_4 | th4 *t1Item_5 | th5 *t1'
## Models is not identifiable?
Warning message:In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :lavaan WARNING: could not compute standard errors!lavaan NOTE: this may be a symptom that the model is not identified.
Theta1 =~Item_1 (l11) 0.275 NA 0.275 0.275Item_2 (l12) 0.281 NA 0.281 0.281Item_3 (l13) 0.333 NA 0.333 0.333Item_4 (l14) 0.267 NA 0.267 0.267Item_5 (l15) 0.242 NA 0.242 0.242Theta2 =~Item_1 (l21) 0.275 NA 0.275 0.275Item_2 (l22) 0.281 NA 0.281 0.281Item_3 (l23) 0.333 NA 0.333 0.333Item_4 (l24) 0.267 NA 0.267 0.267Item_5 (l25) 0.242 NA 0.242 0.242
lavaan.lsat6.2pl.model.2D <-'Theta1 =~ l11*Item_1 + l12*Item_2 + l13*Item_3 + l14*Item_4 + l15*Item_5Theta2 =~ l21*Item_1 + l22*Item_2 + l23*Item_3 + l24*Item_4 + l25*Item_5Item_1 | th1 *t1Item_2 | th2 *t1Item_3 | th3 *t1Item_4 | th4 *t1Item_5 | th5 *t1
Theta1 ~~ 0*Theta2
'lavaan.lsat6.2pl.model.2D.fit <- cfa(lavaan.lsat6.2pl.model.2D, data = dat , std.lv=TRUE , ordered =c("Item_1","Item_2","Item_3","Item_4","Item_5"))
summary ( lavaan.lsat6.2pl.model.2D.fit , standardized = TRUE )
lavaan (0.5-23.1097) converged normally after 25 iterationsNumber of observations 1000Estimator DWLS RobustMinimum Function Test Statistic 4.051 4.051Degrees of freedom 0 0Minimum Function Value 0.0020255466035Scaling correction factor NAShift parameterfor simple second-order correction (Mplus variant)Parameter Estimates:Information ExpectedStandard Errors Robust.semLatent Variables:Estimate Std.Err z-value P(>|z|) Std.lv Std.allTheta1 =~Item_1 (l11) 0.275 NA 0.275 0.275Item_2 (l12) 0.281 NA 0.281 0.281Item_3 (l13) 0.333 NA 0.333 0.333Item_4 (l14) 0.267 NA 0.267 0.267Item_5 (l15) 0.242 NA 0.242 0.242Theta2 =~Item_1 (l21) 0.275 NA 0.275 0.275Item_2 (l22) 0.281 NA 0.281 0.281Item_3 (l23) 0.333 NA 0.333 0.333Item_4 (l24) 0.267 NA 0.267 0.267Item_5 (l25) 0.242 NA 0.242 0.242Covariances:Estimate Std.Err z-value P(>|z|) Std.lv Std.allTheta1 ~~Theta2 0.000 0.000 0.000Intercepts:Estimate Std.Err z-value P(>|z|) Std.lv Std.all.Item_1 0.000 0.000 0.000.Item_2 0.000 0.000 0.000.Item_3 0.000 0.000 0.000.Item_4 0.000 0.000 0.000.Item_5 0.000 0.000 0.000Theta1 0.000 0.000 0.000Theta2 0.000 0.000 0.000Thresholds:Estimate Std.Err z-value P(>|z|) Std.lv Std.allItm_1|t1 (th1) -1.433 NA -1.433 -1.433Itm_2|t1 (th2) -0.550 NA -0.550 -0.550Itm_3|t1 (th3) -0.133 NA -0.133 -0.133Itm_4|t1 (th4) -0.716 NA -0.716 -0.716Itm_5|t1 (th5) -1.126 NA -1.126 -1.126Variances:Estimate Std.Err z-value P(>|z|) Std.lv Std.all.Item_1 0.848 0.848 0.848.Item_2 0.842 0.842 0.842.Item_3 0.778 0.778 0.778.Item_4 0.858 0.858 0.858.Item_5 0.883 0.883 0.883Theta1 1.000 1.000 1.000Theta2 1.000 1.000 1.000Scales y*:Estimate Std.Err z-value P(>|z|) Std.lv Std.allItem_1 1.000 1.000 1.000Item_2 1.000 1.000 1.000Item_3 1.000 1.000 1.000Item_4 1.000 1.000 1.000Item_5 1.000 1.000 1.000
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
Hugo Harada Adaptativa Inteligência Educacional S.A. | |
lavaan.lsat6.2pl.model.2D <-'Theta1 =~ l11*Item_1 + l12*Item_2 + l13*Item_3 + 0*Item_4 + l15*Item_5Theta2 =~ l21*Item_1 + l22*Item_2 + 0*Item_3 + l24*Item_4 + l25*Item_5
Item_1 | th1 *t1Item_2 | th2 *t1Item_3 | th3 *t1Item_4 | th4 *t1Item_5 | th5 *t1
Theta1 ~~ 0*Theta2
'lavaan.lsat6.2pl.model.2D.fit <- cfa(lavaan.lsat6.2pl.model.2D,data = dat ,
std.lv=TRUE , #residual variance set to 1.0,std.ov=TRUE,ordered =c("Item_1","Item_2","Item_3","Item_4","Item_5"),debug=TRUE)
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
Warning message:In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :lavaan WARNING:
The variance-covariance matrix of the estimated parameters (vcov)does not appear to be positive definite! The smallest eigenvalue(= -1.552743e-02) is smaller than zero. This may be a symptom that
the model is not identified.
rm(list=ls())library(semTools)mydata = read.csv("EQUIPE-2017-S1-PROVA034-QUIZ538-DICOTOMICA.TXT")mydata.factor <- mydatamydata.factor[,2:176]<- lapply(mydata.factor[,2:176],as.integer)
# language and maths exams onlyLC.MT = cbind(mydata.factor[,47:61],mydata.factor[,63:86],mydata.factor[,132:176])
### run EFA with WLSMV
ef2_irt <- efaUnrotate(data=LC.MT,estimator="wlsmv",nf=2,start=FALSE,std.lv=TRUE,ordered =colnames(LC.MT),debug=TRUE)
summary(ef2_irt, std = TRUE)inspect(ef2_irt, "std")## use oblique rotationef2_ob <- oblqRotate(ef2_irt)summary(ef2_ob,suppress=.001)
> sessionInfo() R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3 LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] GPArotation_2014.11-1 semTools_0.5-0 lavaan_0.6-2.1271 loaded via a namespace (and not attached): [1] MASS_7.3-50 compiler_3.4.4 tools_3.4.4 mnormt_1.5-5 pbivnorm_0.6.0 stats4_3.4.4
Hugo Harada
Sócio-fundador - COOAdaptativa Inteligência Educacional S.A.
Trab: (11) 3052-3117 / Cel: (11) 96345-0390
Rua Claudio Soares, 72 - Sala 411Pinheiros, CEP 05422-030, São Paulo - SP
http://www.adaptativa.com.br
Warning message:In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :lavaan WARNING:The variance-covariance matrix of the estimated parameters (vcov)does not appear to be positive definite! The smallest eigenvalue(= -1.552743e-02) is smaller than zero. This may be a symptom thatthe model is not identified.
Latent Variables:Estimate Std.Err z-value P(>|z|) Std.lv Std.all
factor1 =~LC051 (l1_1) 0.000 4482.551 0.000 1.000 0.000 0.000LC052 (l2_1) 0.000 4356.696 0.000 1.000 0.000 0.000LC053 (l3_1) -0.000 3910.838 -0.000 1.000 -0.000 -0.000LC054 (l4_1) -0.000 3925.346 -0.000 1.000 -0.000 -0.000
R version 3.5.1 (2018-07-02)Platform: x86_64-w64-mingw32/x64 (64-bit)Running under: Windows 7 x64 (build 7601) Service Pack 1Matrix products: defaultlocale:[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252[4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252
attached base packages:[1] stats graphics grDevices utils datasets methods baseother attached packages:[1] GPArotation_2014.11-1 semTools_0.5-0 lavaan_0.6-2
loaded via a namespace (and not attached):
[1] MASS_7.3-50 compiler_3.5.1 tools_3.5.1 mnormt_1.5-5 pbivnorm_0.6.0 stats4_3.5.1
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
3) use an 'echelon' pattern for the lambda matrixfor example, if you have 8 observed variables, and 6 factors, the lambda structure would look like this:
X_j = lambda_ji * F_i with j=1..8 and i=1..6, where lambda_ji obbeys the echelon pattern..
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
fit.delta <- efaUnrotate(datCat[1:8], nf = 2, start=FALSE)
summary(fit.delta)
fit.theta <- efaUnrotate(datCat[1:8], nf = 2, start=FALSE, parameterization = "theta")
summary(fit.theta)
varNames <- colnames(datCat)[1:8]
nf <- 3 ## number of factors
syntax <- character(0)
for (i in seq_along(varNames)) {
syntax <- c(syntax, paste0("fac_", i, " =~ ", paste(varNames[i:length(varNames)], collapse = " + ")))
if (i == nf) break
}
syntax
fit.delta.start <- efaUnrotate(datCat[1:8], nf = 2, start=TRUE)
summary(fit.delta.start)
Warning message: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, : |
lavaan WARNING: The variance-covariance matrix of the estimated parameters (vcov) does not appear to be positive definite! The smallest eigenvalue (= -7.495555e+01) is smaller than zero. This may be a symptom that the model is not identified. > ef2_irt <- efaUnrotate(data=LC.MT, + estimator="wlsmv", + nf=2, + start=F, + ordered =colnames(LC.MT), + parameterization="delta") |
Warning message: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, : |
lavaan WARNING:
The variance-covariance matrix of the estimated parameters (vcov)
does not appear to be positive definite! The smallest eigenvalue
(= -1.020010e-02) is smaller than zero. This may be a symptom that
the model is not identified.
| |
|
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
If you are using the sem/cfa/lavaan functions directly, you can set
start = "simple" to avoid them.
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.