Inspect model information
modsem_inspect.Rd
function used to inspect fitted object. Similar to lavaan::lavInspect
argument what
decides what to inspect
modsem_inspect.modsem_da
Lets you
pull matrices, optimiser diagnostics, expected moments, or fit
measures from a modsem_da
object.
Usage
modsem_inspect(object, what = NULL, ...)
# S3 method for class 'lavaan'
modsem_inspect(object, what = "free", ...)
# S3 method for class 'modsem_da'
modsem_inspect(object, what = NULL, ...)
# S3 method for class 'modsem_pi'
modsem_inspect(object, what = "free", ...)
Value
A named list with the extracted information. If a single piece of information is returned, it is returned as is; not as a named element in a list.
Details
For modsem_pi
objects, it is just a wrapper for lavaan::lavInspect
.
For modsem_da
objects an internal function is called, which takes different
keywords for the what
argument.
Below is a list of possible values for the what
argument,
organised in several sections. Keywords are case-sensitive.
Presets
"default"
Everything in Sample information, Optimiser diagnostics Parameter tables, Model matrices, and Expected-moment matrices except the raw
data
slot"coef"
Coefficients and variance-covariance matrix of both free and constrained parameters (same as
"coef.all"
)."coef.all"
Coefficients and variance-covariance matrix of both free and constrained parameters (same as
"coef"
)."coef.free"
Coefficients and variance-covariance matrix of the free parameters.
"all"
All items listed below, including
data
."matrices"
The model matrices.
"optim"
Only the items under Optimiser diagnostics
.
"fit"
A list with
fit.h0
,fit.h1
, comparative.fit
Sample information:
"N"
Number of analysed rows (integer).
Parameter estimates and standard errors:
"coefficients.free"
Free parameter values.
"coefficients.all"
Both free and constrained parameter values.
"vcov.free"
Variance–covariance of free coefficients only.
"vcov.all"
Variance–covariance of both free and constrained coefficients.
Optimiser diagnostics:
"coefficients.free"
Free parameter values.
"vcov.free"
Variance–covariance of free coefficients only.
"information"
Fisher information matrix.
"loglik"
Log-likelihood.
"iterations"
Optimiser iteration count.
"convergence"
TRUE
/FALSE
indicating whether the model converged.
Parameter tables:
"partable"
Parameter table with estimated parameters.
"partable.input"
Parsed model syntax.
Model matrices:
"lambda"
\(\Lambda\) – Factor loadings.
"tau"
\(\tau\) – Intercepts for indicators.
"theta"
\(\Theta\) – Residual (Co-)Variances for indicators.
"gamma.xi"
\(\Gamma_{\xi}\) – Structural coefficients between exogenous and endogenous variables.
"gamma.eta"
\(\Gamma_{\eta}\) – Structural coefficients between endogenous variables.
"omega.xi.xi"
\(\Omega_{\xi\xi}\) – Interaction effects between exogenous variables
"omega.eta.xi"
\(\Omega_{\eta\xi}\) – Interaction effects between exogenous and endogenous variables
"phi"
\(\Phi\) – (Co-)Variances among exogenous variables.
"psi"
\(\Psi\) – Residual (co-)variances among engoenous variables.
"alpha"
\(\alpha\) – Intercepts for endogenous variables
"beta0"
\(\beta_0\) – Intercepts for exogenous variables
Model-implied matrices:
"cov.ov"
Model-implied covariance of observed variables.
"cov.lv"
Model-implied covariance of latent variables.
"cov.all"
Joint covariance of observed + latent variables.
"cor.ov"
Correlation counterpart of
"cov.ov"
."cor.lv"
Correlation counterpart of
"cov.lv"
."cor.all"
Correlation counterpart of
"cov.all"
."mean.ov"
Expected means of observed variables.
"mean.lv"
Expected means of latent variables.
"mean.all"
Joint mean vector.
R-squared and standardized residual variances:
"r2.all"
R-squared values for both observed (i.e., indicators) and latent endogenous variables.
"r2.lv"
R-squared values for latent endogenous variables.
"r2.ov"
R-squared values for observed (i.e., indicators) variables.
"res.all"
Standardized residuals (i.e.,
1 - R^2
) for both observed (i.e., indicators) and latent endogenous variables."res.lv"
Standardized residuals (i.e.,
1 - R^2
) for latent endogenous variables."res.ov"
Standardized residuals (i.e.,
1 - R^2
) for observed variables (i.e., indicators).
Interaction-specific caveats:
If the model contains an uncentred latent interaction term it is centred internally before any
cov.*
,cor.*
, ormean.*
matrices are calculated.These matrices should not be used to compute fit-statistics (e.g., chi-square and RMSEA) if there is an interaction term in the model.
Examples
# \dontrun{
m1 <- "
# Outer Model
X =~ x1 + x2 + x3
Y =~ y1 + y2 + y3
Z =~ z1 + z2 + z3
# Inner model
Y ~ X + Z + X:Z
"
est <- modsem(m1, oneInt, "lms")
modsem_inspect(est) # everything except "data"
#> $N
#> [1] 2000
#>
#> $vcov.all
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1 x2~1 x3~1 z1~1 z2~1 z3~1
#> X=~x2 0.000
#> X=~x3 0.000 0.000
#> Z=~z2 0.000 0.000 0.000
#> Z=~z3 0.000 0.000 0.000 0.000
#> Y=~y2 0.000 0.000 0.000 0.000 0.000
#> Y=~y3 0.000 0.000 0.000 0.000 0.000 0.000
#> x1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> x2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> z2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x1~~x1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x2~~x2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x3~~x3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~~z1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z2~~z2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~~z3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~~y1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~~y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Z~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1 0.001
#> y2~1 0.001 0.001
#> y3~1 0.001 0.001 0.001
#> x1~~x1 0.000 0.000 0.000 0.000
#> x2~~x2 0.000 0.000 0.000 0.000 0.000
#> x3~~x3 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~~z1 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z2~~z2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~~z3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~~y1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~~y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Z~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y Y~X Y~Z Y~X:Z
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1
#> y2~~y2 0.000
#> y3~~y3 0.000 0.000
#> X~~X 0.000 0.000 0.001
#> X~~Z 0.000 0.000 0.000 0.001
#> Z~~Z 0.000 0.000 0.000 0.000 0.001
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#>
#> $vcov.free
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1 x2~1 x3~1 z1~1 z2~1 z3~1
#> X=~x2 0.000
#> X=~x3 0.000 0.000
#> Z=~z2 0.000 0.000 0.000
#> Z=~z3 0.000 0.000 0.000 0.000
#> Y=~y2 0.000 0.000 0.000 0.000 0.000
#> Y=~y3 0.000 0.000 0.000 0.000 0.000 0.000
#> x1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> x2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> z2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x1~~x1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x2~~x2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x3~~x3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~~z1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z2~~z2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~~z3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~~y1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~~y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Z~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1 0.001
#> y2~1 0.001 0.001
#> y3~1 0.001 0.001 0.001
#> x1~~x1 0.000 0.000 0.000 0.000
#> x2~~x2 0.000 0.000 0.000 0.000 0.000
#> x3~~x3 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~~z1 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z2~~z2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~~z3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~~y1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~~y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Z~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y Y~X Y~Z Y~X:Z
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1
#> y2~~y2 0.000
#> y3~~y3 0.000 0.000
#> X~~X 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.001
#> Z~~Z 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#>
#> $information
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1
#> X=~x2 8940.747
#> X=~x3 -2765.687 8146.127
#> Z=~z2 63.585 74.532 9240.230
#> Z=~z3 72.563 81.754 -3032.851 8777.372
#> Y=~y2 -169.875 -194.485 -158.858 -172.299 23805.972
#> Y=~y3 -176.904 -205.656 -169.904 -183.161 -8380.278 21003.478
#> x1~1 34.115 35.756 92.255 97.701 -121.839 -132.311 8012.694
#> x2~1 23.345 28.025 72.307 76.575 -95.494 -103.702 -3634.461
#> x3~1 29.974 28.072 81.057 85.842 -107.050 -116.252 -4074.307
#> z1~1 90.735 98.998 26.865 31.847 -126.389 -133.258 53.908
#> z2~1 76.804 83.799 14.151 26.965 -106.984 -112.798 45.632
#> z3~1 84.254 91.927 24.802 21.316 -117.361 -123.740 50.058
#> y1~1 -23.763 -26.796 -24.006 -28.510 -588.847 -626.345 -176.130
#> y2~1 -19.609 -22.112 -19.809 -23.526 1365.671 -516.870 -145.337
#> y3~1 -20.851 -23.513 -21.065 -25.017 -516.883 1198.700 -154.545
#> x1~~x1 -1396.347 -1483.742 17.236 27.782 -10.528 -11.375 -12.161
#> x2~~x2 2711.567 -914.206 25.883 15.823 -6.339 -14.535 -13.200
#> x3~~x3 -1033.780 2733.337 14.451 17.608 14.546 22.541 -2.766
#> z1~~z1 12.119 13.031 -1311.348 -1440.565 14.620 13.817 38.991
#> z2~~z2 33.211 27.795 2849.053 -1039.784 -2.992 0.224 12.501
#> z3~~z3 24.314 33.491 -1122.469 2976.628 -14.486 -17.601 34.550
#> y1~~y1 1.265 0.821 7.268 5.970 -1489.411 -1622.406 2.830
#> y2~~y2 3.555 -5.601 -12.354 -9.445 3046.470 -1168.964 -11.090
#> y3~~y3 -16.518 -12.664 -8.496 -10.894 -1249.403 2844.950 2.599
#> X~~X 1137.039 1267.482 -50.877 -57.822 62.875 65.990 -9.888
#> X~~Z -118.581 -132.968 111.937 130.617 32.035 34.475 -52.127
#> Z~~Z -25.871 -29.528 1157.554 1267.859 48.924 52.020 -16.818
#> Y~~Y -29.915 -43.016 -32.768 -35.071 550.939 591.078 -12.812
#> Y~X -290.325 -315.148 -39.742 -48.469 435.470 458.944 -71.950
#> Y~Z -63.995 -68.938 -276.217 -286.143 396.880 432.271 -418.155
#> Y~X:Z -291.574 -336.412 -317.452 -348.116 417.876 437.485 -76.997
#> x2~1 x3~1 z1~1 z2~1 z3~1 y1~1 y2~1
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1 9491.071
#> x3~1 -3193.328 8581.090
#> z1~1 42.252 47.365 7693.650
#> z2~1 35.765 40.093 -3641.280 9448.707
#> z3~1 39.234 43.982 -3994.479 -3381.193 8933.046
#> y1~1 -138.045 -154.752 -144.512 -122.325 -134.190 7704.279
#> y2~1 -113.911 -127.696 -119.247 -100.939 -110.730 -3985.344 9668.073
#> y3~1 -121.128 -135.787 -126.803 -107.334 -117.745 -4237.854 -3496.944
#> x1~~x1 13.892 15.573 49.676 42.049 46.128 -6.784 -5.598
#> x2~~x2 -43.431 -11.598 13.173 11.150 12.232 3.973 3.279
#> x3~~x3 -2.168 -27.446 31.653 26.793 29.392 5.867 4.842
#> z1~~z1 30.560 34.259 -19.288 -9.012 -9.347 -1.821 -1.502
#> z2~~z2 9.798 10.984 3.434 -15.043 3.554 -2.269 -1.872
#> z3~~z3 27.079 30.356 -9.134 -7.754 -19.680 9.397 7.754
#> y1~~y1 2.218 2.486 -4.751 -4.022 -4.410 -12.162 -3.561
#> y2~~y2 -8.692 -9.744 2.634 2.229 2.447 -3.645 -21.170
#> y3~~y3 2.037 2.284 -3.225 -2.730 -2.994 -2.830 -2.253
#> X~~X -7.750 -8.688 -31.105 -26.329 -28.896 -2.310 -1.906
#> X~~Z -40.856 -45.800 -39.574 -33.498 -36.747 55.725 45.983
#> Z~~Z -13.182 -14.777 6.545 5.539 6.107 -13.182 -10.878
#> Y~~Y -10.042 -11.257 -13.482 -11.413 -12.510 -1.478 -1.217
#> Y~X -56.393 -63.217 -398.754 -337.532 -370.272 -34.772 -28.693
#> Y~Z -327.738 -367.401 -71.350 -60.395 -66.268 -37.973 -31.334
#> Y~X:Z -60.348 -67.652 -51.240 -43.372 -47.597 129.456 106.823
#> y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1 8513.023
#> x1~~x1 -5.953 16046.246
#> x2~~x2 3.486 3561.575 22501.072
#> x3~~x3 5.148 4022.366 2497.020 18385.647
#> z1~~z1 -1.596 2.169 14.429 21.213 14803.641
#> z2~~z2 -1.989 52.008 -22.954 23.590 3284.983 22324.395
#> z3~~z3 8.247 13.160 42.381 18.614 3963.400 2881.640 19933.598
#> y1~~y1 -3.147 20.181 10.889 17.002 18.904 20.488 35.798
#> y2~~y2 -2.686 6.776 -18.913 29.505 3.041 10.424 -10.323
#> y3~~y3 -13.417 8.653 21.476 -5.536 12.922 -6.956 0.395
#> X~~X -2.026 236.334 141.155 217.200 -10.095 -15.335 -7.113
#> X~~Z 48.896 -23.108 -50.087 -62.739 12.921 13.464 -27.406
#> Z~~Z -11.567 -13.538 4.544 8.633 264.314 188.012 236.671
#> Y~~Y -1.278 87.142 35.734 97.591 85.855 57.362 64.144
#> Y~X -30.511 -171.079 -57.392 -129.435 33.310 -16.997 6.699
#> Y~Z -33.318 -23.023 15.999 4.538 -138.180 -41.861 -144.147
#> Y~X:Z 113.593 -105.128 -100.937 -73.765 -101.526 -117.057 -141.399
#> y1~~y1 y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1 14845.552
#> y2~~y2 3727.682 23377.611
#> y3~~y3 4422.244 3346.205 18127.337
#> X~~X -3.289 0.751 5.330 3679.722
#> X~~Z 1.111 0.378 -1.842 -317.004 1821.103
#> Z~~Z -5.003 4.035 4.559 0.730 44.593 3588.855
#> Y~~Y 170.591 79.635 60.896 7.085 -1.005 8.743 760.791
#> Y~X 18.307 -9.492 11.703 121.160 36.074 -2.399 51.685
#> Y~Z -13.291 42.514 -8.466 7.145 59.573 90.562 46.891
#> Y~X:Z -25.879 15.038 54.542 121.437 54.404 111.162 109.053
#> Y~X Y~Z Y~X:Z
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1
#> y2~~y2
#> y3~~y3
#> X~~X
#> X~~Z
#> Z~~Z
#> Y~~Y
#> Y~X 1549.691
#> Y~Z 320.319 1596.952
#> Y~X:Z -64.348 -28.210 1511.779
#>
#> $coefficients.all
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1 x2~1 x3~1 z1~1 z2~1
#> 0.803 0.914 0.810 0.881 0.798 0.899 1.023 1.216 0.920 1.012 1.206
#> z3~1 y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> 0.916 1.037 1.220 0.954 0.158 0.162 0.164 0.167 0.160 0.158 0.160
#> y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y Y~X Y~Z Y~X:Z
#> 0.154 0.164 0.981 0.200 1.017 0.980 0.673 0.569 0.718
#>
#> $coefficients.free
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1 x2~1 x3~1 z1~1 z2~1
#> 0.803 0.914 0.810 0.881 0.798 0.899 1.023 1.216 0.920 1.012 1.206
#> z3~1 y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> 0.916 1.037 1.220 0.954 0.158 0.162 0.164 0.167 0.160 0.158 0.160
#> y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y Y~X Y~Z Y~X:Z
#> 0.154 0.164 0.981 0.200 1.017 0.980 0.673 0.569 0.718
#>
#> $partable
#> lhs op rhs label est std.error z.value p.value ci.lower ci.upper
#> 1 X =~ x1 1.000 NA NA NA NA NA
#> 2 X =~ x2 0.803 0.013 63.813 0 0.779 0.828
#> 3 X =~ x3 0.914 0.014 67.611 0 0.887 0.940
#> 4 Z =~ z1 1.000 NA NA NA NA NA
#> 5 Z =~ z2 0.810 0.012 65.087 0 0.786 0.835
#> 6 Z =~ z3 0.881 0.013 67.615 0 0.856 0.907
#> 7 Y =~ y1 1.000 NA NA NA NA NA
#> 8 Y =~ y2 0.798 0.007 107.550 0 0.784 0.813
#> 9 Y =~ y3 0.899 0.008 112.586 0 0.883 0.915
#> 10 Y ~ X 0.673 0.031 21.688 0 0.613 0.734
#> 11 Y ~ Z 0.569 0.030 18.734 0 0.510 0.629
#> 12 Y ~ X:Z 0.718 0.028 25.826 0 0.663 0.772
#> 13 x1 ~1 1.023 0.024 42.804 0 0.976 1.070
#> 14 x2 ~1 1.216 0.020 60.873 0 1.177 1.255
#> 15 x3 ~1 0.920 0.022 41.400 0 0.876 0.963
#> 16 z1 ~1 1.012 0.024 41.578 0 0.964 1.059
#> 17 z2 ~1 1.206 0.020 59.274 0 1.166 1.246
#> 18 z3 ~1 0.916 0.022 42.067 0 0.873 0.959
#> 19 y1 ~1 1.037 0.033 31.398 0 0.972 1.102
#> 20 y2 ~1 1.220 0.027 45.424 0 1.168 1.273
#> 21 y3 ~1 0.954 0.030 31.806 0 0.895 1.013
#> 22 x1 ~~ x1 0.158 0.009 18.171 0 0.141 0.175
#> 23 x2 ~~ x2 0.162 0.007 23.160 0 0.148 0.176
#> 24 x3 ~~ x3 0.164 0.008 20.758 0 0.149 0.180
#> 25 z1 ~~ z1 0.167 0.009 18.504 0 0.149 0.184
#> 26 z2 ~~ z2 0.160 0.007 22.680 0 0.146 0.173
#> 27 z3 ~~ z3 0.158 0.008 20.779 0 0.143 0.173
#> 28 y1 ~~ y1 0.160 0.009 18.011 0 0.142 0.177
#> 29 y2 ~~ y2 0.154 0.007 22.687 0 0.141 0.168
#> 30 y3 ~~ y3 0.164 0.008 20.683 0 0.148 0.179
#> 31 X ~~ X 0.981 0.036 26.969 0 0.910 1.052
#> 32 X ~~ Z 0.200 0.024 8.240 0 0.152 0.247
#> 33 Z ~~ Z 1.017 0.038 26.932 0 0.943 1.092
#> 34 Y ~~ Y 0.980 0.038 25.938 0 0.906 1.054
#>
#> $partable.input
#> lhs op rhs mod
#> 1 X =~ x1
#> 2 X =~ x2
#> 3 X =~ x3
#> 4 Y =~ y1
#> 5 Y =~ y2
#> 6 Y =~ y3
#> 7 Z =~ z1
#> 8 Z =~ z2
#> 9 Z =~ z3
#> 10 Y ~ X
#> 11 Y ~ Z
#> 12 Y ~ X:Z
#>
#> $loglik
#> [1] -17493.6
#>
#> $iterations
#> [1] 41
#>
#> $convergence
#> [1] TRUE
#>
#> $lambda
#> X Z Y
#> x1 1.000 0.000 0.000
#> x2 0.803 0.000 0.000
#> x3 0.914 0.000 0.000
#> z1 0.000 1.000 0.000
#> z2 0.000 0.810 0.000
#> z3 0.000 0.881 0.000
#> y1 0.000 0.000 1.000
#> y2 0.000 0.000 0.798
#> y3 0.000 0.000 0.899
#>
#> $tau
#> ~1
#> x1 1.023
#> x2 1.216
#> x3 0.920
#> z1 1.012
#> z2 1.206
#> z3 0.916
#> y1 1.037
#> y2 1.220
#> y3 0.954
#>
#> $theta
#> x1 x2 x3 z1 z2 z3 y1 y2 y3
#> x1 0.158
#> x2 0.000 0.162
#> x3 0.000 0.000 0.164
#> z1 0.000 0.000 0.000 0.167
#> z2 0.000 0.000 0.000 0.000 0.160
#> z3 0.000 0.000 0.000 0.000 0.000 0.158
#> y1 0.000 0.000 0.000 0.000 0.000 0.000 0.160
#> y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.154
#> y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.164
#>
#> $gamma.xi
#> X Z
#> Y 0.673 0.569
#>
#> $gamma.eta
#> Y
#> Y 0.000
#>
#> $omega.xi.xi
#> X Z
#> Y~X 0.000 0.718
#> Y~Z 0.000 0.000
#>
#> $omega.eta.xi
#> Y
#> Y~X 0.000
#> Y~Z 0.000
#>
#> $phi
#> X Z
#> X 0.981
#> Z 0.200 1.017
#>
#> $psi
#> Y
#> Y 0.980
#>
#> $alpha
#> ~1
#> Y 0.000
#>
#> $beta0
#> ~1
#> X 0.000
#> Z 0.000
#>
#> $cov.ov
#> x1 x2 x3 z1 z2 z3 y1 y2 y3
#> x1 1.139
#> x2 0.788 0.795
#> x3 0.897 0.720 0.984
#> z1 0.200 0.161 0.183 1.184
#> z2 0.162 0.130 0.148 0.824 0.828
#> z3 0.176 0.142 0.161 0.896 0.726 0.948
#> y1 0.774 0.622 0.708 0.714 0.579 0.629 2.603
#> y2 0.618 0.497 0.565 0.570 0.462 0.502 1.950 1.711
#> y3 0.696 0.560 0.636 0.642 0.520 0.566 2.197 1.753 2.139
#>
#> $cov.lv
#> X Z X:Z Y
#> X 0.981
#> Z 0.200 1.017
#> X:Z 0.000 0.000 1.038
#> Y 0.774 0.714 0.745 2.443
#>
#> $cov.all
#> X Z X:Z Y x1 x2 x3 z1 z2 z3 y1 y2
#> X 0.981
#> Z 0.200 1.017
#> X:Z 0.000 0.000 1.038
#> Y 0.774 0.714 0.745 2.443
#> x1 0.981 0.200 0.000 0.774 1.139
#> x2 0.788 0.161 0.000 0.622 0.788 0.795
#> x3 0.897 0.183 0.000 0.708 0.897 0.720 0.984
#> z1 0.200 1.017 0.000 0.714 0.200 0.161 0.183 1.184
#> z2 0.162 0.824 0.000 0.579 0.162 0.130 0.148 0.824 0.828
#> z3 0.176 0.896 0.000 0.629 0.176 0.142 0.161 0.896 0.726 0.948
#> y1 0.774 0.714 0.745 2.443 0.774 0.622 0.708 0.714 0.579 0.629 2.603
#> y2 0.618 0.570 0.595 1.950 0.618 0.497 0.565 0.570 0.462 0.502 1.950 1.711
#> y3 0.696 0.642 0.670 2.197 0.696 0.560 0.636 0.642 0.520 0.566 2.197 1.753
#> y3
#> X
#> Z
#> X:Z
#> Y
#> x1
#> x2
#> x3
#> z1
#> z2
#> z3
#> y1
#> y2
#> y3 2.139
#>
#> $cor.ov
#> x1 x2 x3 z1 z2 z3 y1 y2 y3
#> x1 1.000
#> x2 0.828 1.000
#> x3 0.847 0.814 1.000
#> z1 0.172 0.165 0.169 1.000
#> z2 0.167 0.160 0.164 0.833 1.000
#> z3 0.169 0.163 0.167 0.846 0.820 1.000
#> y1 0.450 0.432 0.442 0.407 0.394 0.400 1.000
#> y2 0.443 0.426 0.435 0.400 0.388 0.394 0.924 1.000
#> y3 0.446 0.429 0.439 0.403 0.391 0.397 0.931 0.917 1.000
#>
#> $cor.lv
#> X Z X:Z Y
#> X 1.000
#> Z 0.200 1.000
#> X:Z 0.000 0.000 1.000
#> Y 0.500 0.453 0.468 1.000
#>
#> $cor.all
#> X Z X:Z Y x1 x2 x3 z1 z2 z3 y1 y2
#> X 1.000
#> Z 0.200 1.000
#> X:Z 0.000 0.000 1.000
#> Y 0.500 0.453 0.468 1.000
#> x1 0.928 0.186 0.000 0.464 1.000
#> x2 0.892 0.179 0.000 0.446 0.828 1.000
#> x3 0.913 0.183 0.000 0.457 0.847 0.814 1.000
#> z1 0.185 0.927 0.000 0.420 0.172 0.165 0.169 1.000
#> z2 0.180 0.898 0.000 0.407 0.167 0.160 0.164 0.833 1.000
#> z3 0.183 0.913 0.000 0.413 0.169 0.163 0.167 0.846 0.820 1.000
#> y1 0.485 0.439 0.453 0.969 0.450 0.432 0.442 0.407 0.394 0.400 1.000
#> y2 0.477 0.432 0.446 0.954 0.443 0.426 0.435 0.400 0.388 0.394 0.924 1.000
#> y3 0.481 0.435 0.450 0.961 0.446 0.429 0.439 0.403 0.391 0.397 0.931 0.917
#> y3
#> X
#> Z
#> X:Z
#> Y
#> x1
#> x2
#> x3
#> z1
#> z2
#> z3
#> y1
#> y2
#> y3 1.000
#>
#> $mean.lv
#> ~1
#> X 0.000
#> Z 0.000
#> X:Z 0.200
#> Y 0.144
#>
#> $mean.ov
#> ~1
#> x1 1.023
#> x2 1.216
#> x3 0.920
#> z1 1.012
#> z2 1.206
#> z3 0.916
#> y1 1.181
#> y2 1.335
#> y3 1.083
#>
#> $mean.all
#> ~1
#> X 0.000
#> Z 0.000
#> X:Z 0.200
#> Y 0.144
#> x1 1.023
#> x2 1.216
#> x3 0.920
#> z1 1.012
#> z2 1.206
#> z3 0.916
#> y1 1.181
#> y2 1.335
#> y3 1.083
#>
#> $r2.all
#> Y x1 x2 x3 z1 z2 z3 y1 y2 y3
#> 0.599 0.861 0.796 0.833 0.859 0.807 0.833 0.939 0.910 0.924
#>
#> $r2.lv
#> Y
#> 0.599
#>
#> $r2.ov
#> x1 x2 x3 z1 z2 z3 y1 y2 y3
#> 0.861 0.796 0.833 0.859 0.807 0.833 0.939 0.910 0.924
#>
#> $res.all
#> Y x1 x2 x3 z1 z2 z3 y1 y2 y3
#> 0.401 0.139 0.204 0.167 0.141 0.193 0.167 0.061 0.090 0.076
#>
#> $res.lv
#> Y
#> 0.401
#>
#> $res.ov
#> x1 x2 x3 z1 z2 z3 y1 y2 y3
#> 0.139 0.204 0.167 0.141 0.193 0.167 0.061 0.090 0.076
#>
modsem_inspect(est, what = "optim")
#> $coefficients.free
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1 x2~1 x3~1 z1~1 z2~1
#> 0.803 0.914 0.810 0.881 0.798 0.899 1.023 1.216 0.920 1.012 1.206
#> z3~1 y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> 0.916 1.037 1.220 0.954 0.158 0.162 0.164 0.167 0.160 0.158 0.160
#> y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y Y~X Y~Z Y~X:Z
#> 0.154 0.164 0.981 0.200 1.017 0.980 0.673 0.569 0.718
#>
#> $vcov.free
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1 x2~1 x3~1 z1~1 z2~1 z3~1
#> X=~x2 0.000
#> X=~x3 0.000 0.000
#> Z=~z2 0.000 0.000 0.000
#> Z=~z3 0.000 0.000 0.000 0.000
#> Y=~y2 0.000 0.000 0.000 0.000 0.000
#> Y=~y3 0.000 0.000 0.000 0.000 0.000 0.000
#> x1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> x2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> z2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x1~~x1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x2~~x2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> x3~~x3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~~z1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z2~~z2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~~z3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~~y1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~~y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Z~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1 0.001
#> y2~1 0.001 0.001
#> y3~1 0.001 0.001 0.001
#> x1~~x1 0.000 0.000 0.000 0.000
#> x2~~x2 0.000 0.000 0.000 0.000 0.000
#> x3~~x3 0.000 0.000 0.000 0.000 0.000 0.000
#> z1~~z1 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z2~~z2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> z3~~z3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y1~~y1 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y3~~y3 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Z~~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
#> y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y Y~X Y~Z Y~X:Z
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1
#> y2~~y2 0.000
#> y3~~y3 0.000 0.000
#> X~~X 0.000 0.000 0.000
#> X~~Z 0.000 0.000 0.000 0.001
#> Z~~Z 0.000 0.000 0.000 0.000 0.000
#> Y~~Y 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~X 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#> Y~X:Z 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.001
#>
#> $information
#> X=~x2 X=~x3 Z=~z2 Z=~z3 Y=~y2 Y=~y3 x1~1
#> X=~x2 8940.747
#> X=~x3 -2765.687 8146.127
#> Z=~z2 63.585 74.532 9240.230
#> Z=~z3 72.563 81.754 -3032.851 8777.372
#> Y=~y2 -169.875 -194.485 -158.858 -172.299 23805.972
#> Y=~y3 -176.904 -205.656 -169.904 -183.161 -8380.278 21003.478
#> x1~1 34.115 35.756 92.255 97.701 -121.839 -132.311 8012.694
#> x2~1 23.345 28.025 72.307 76.575 -95.494 -103.702 -3634.461
#> x3~1 29.974 28.072 81.057 85.842 -107.050 -116.252 -4074.307
#> z1~1 90.735 98.998 26.865 31.847 -126.389 -133.258 53.908
#> z2~1 76.804 83.799 14.151 26.965 -106.984 -112.798 45.632
#> z3~1 84.254 91.927 24.802 21.316 -117.361 -123.740 50.058
#> y1~1 -23.763 -26.796 -24.006 -28.510 -588.847 -626.345 -176.130
#> y2~1 -19.609 -22.112 -19.809 -23.526 1365.671 -516.870 -145.337
#> y3~1 -20.851 -23.513 -21.065 -25.017 -516.883 1198.700 -154.545
#> x1~~x1 -1396.347 -1483.742 17.236 27.782 -10.528 -11.375 -12.161
#> x2~~x2 2711.567 -914.206 25.883 15.823 -6.339 -14.535 -13.200
#> x3~~x3 -1033.780 2733.337 14.451 17.608 14.546 22.541 -2.766
#> z1~~z1 12.119 13.031 -1311.348 -1440.565 14.620 13.817 38.991
#> z2~~z2 33.211 27.795 2849.053 -1039.784 -2.992 0.224 12.501
#> z3~~z3 24.314 33.491 -1122.469 2976.628 -14.486 -17.601 34.550
#> y1~~y1 1.265 0.821 7.268 5.970 -1489.411 -1622.406 2.830
#> y2~~y2 3.555 -5.601 -12.354 -9.445 3046.470 -1168.964 -11.090
#> y3~~y3 -16.518 -12.664 -8.496 -10.894 -1249.403 2844.950 2.599
#> X~~X 1137.039 1267.482 -50.877 -57.822 62.875 65.990 -9.888
#> X~~Z -118.581 -132.968 111.937 130.617 32.035 34.475 -52.127
#> Z~~Z -25.871 -29.528 1157.554 1267.859 48.924 52.020 -16.818
#> Y~~Y -29.915 -43.016 -32.768 -35.071 550.939 591.078 -12.812
#> Y~X -290.325 -315.148 -39.742 -48.469 435.470 458.944 -71.950
#> Y~Z -63.995 -68.938 -276.217 -286.143 396.880 432.271 -418.155
#> Y~X:Z -291.574 -336.412 -317.452 -348.116 417.876 437.485 -76.997
#> x2~1 x3~1 z1~1 z2~1 z3~1 y1~1 y2~1
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1 9491.071
#> x3~1 -3193.328 8581.090
#> z1~1 42.252 47.365 7693.650
#> z2~1 35.765 40.093 -3641.280 9448.707
#> z3~1 39.234 43.982 -3994.479 -3381.193 8933.046
#> y1~1 -138.045 -154.752 -144.512 -122.325 -134.190 7704.279
#> y2~1 -113.911 -127.696 -119.247 -100.939 -110.730 -3985.344 9668.073
#> y3~1 -121.128 -135.787 -126.803 -107.334 -117.745 -4237.854 -3496.944
#> x1~~x1 13.892 15.573 49.676 42.049 46.128 -6.784 -5.598
#> x2~~x2 -43.431 -11.598 13.173 11.150 12.232 3.973 3.279
#> x3~~x3 -2.168 -27.446 31.653 26.793 29.392 5.867 4.842
#> z1~~z1 30.560 34.259 -19.288 -9.012 -9.347 -1.821 -1.502
#> z2~~z2 9.798 10.984 3.434 -15.043 3.554 -2.269 -1.872
#> z3~~z3 27.079 30.356 -9.134 -7.754 -19.680 9.397 7.754
#> y1~~y1 2.218 2.486 -4.751 -4.022 -4.410 -12.162 -3.561
#> y2~~y2 -8.692 -9.744 2.634 2.229 2.447 -3.645 -21.170
#> y3~~y3 2.037 2.284 -3.225 -2.730 -2.994 -2.830 -2.253
#> X~~X -7.750 -8.688 -31.105 -26.329 -28.896 -2.310 -1.906
#> X~~Z -40.856 -45.800 -39.574 -33.498 -36.747 55.725 45.983
#> Z~~Z -13.182 -14.777 6.545 5.539 6.107 -13.182 -10.878
#> Y~~Y -10.042 -11.257 -13.482 -11.413 -12.510 -1.478 -1.217
#> Y~X -56.393 -63.217 -398.754 -337.532 -370.272 -34.772 -28.693
#> Y~Z -327.738 -367.401 -71.350 -60.395 -66.268 -37.973 -31.334
#> Y~X:Z -60.348 -67.652 -51.240 -43.372 -47.597 129.456 106.823
#> y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1 8513.023
#> x1~~x1 -5.953 16046.246
#> x2~~x2 3.486 3561.575 22501.072
#> x3~~x3 5.148 4022.366 2497.020 18385.647
#> z1~~z1 -1.596 2.169 14.429 21.213 14803.641
#> z2~~z2 -1.989 52.008 -22.954 23.590 3284.983 22324.395
#> z3~~z3 8.247 13.160 42.381 18.614 3963.400 2881.640 19933.598
#> y1~~y1 -3.147 20.181 10.889 17.002 18.904 20.488 35.798
#> y2~~y2 -2.686 6.776 -18.913 29.505 3.041 10.424 -10.323
#> y3~~y3 -13.417 8.653 21.476 -5.536 12.922 -6.956 0.395
#> X~~X -2.026 236.334 141.155 217.200 -10.095 -15.335 -7.113
#> X~~Z 48.896 -23.108 -50.087 -62.739 12.921 13.464 -27.406
#> Z~~Z -11.567 -13.538 4.544 8.633 264.314 188.012 236.671
#> Y~~Y -1.278 87.142 35.734 97.591 85.855 57.362 64.144
#> Y~X -30.511 -171.079 -57.392 -129.435 33.310 -16.997 6.699
#> Y~Z -33.318 -23.023 15.999 4.538 -138.180 -41.861 -144.147
#> Y~X:Z 113.593 -105.128 -100.937 -73.765 -101.526 -117.057 -141.399
#> y1~~y1 y2~~y2 y3~~y3 X~~X X~~Z Z~~Z Y~~Y
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1 14845.552
#> y2~~y2 3727.682 23377.611
#> y3~~y3 4422.244 3346.205 18127.337
#> X~~X -3.289 0.751 5.330 3679.722
#> X~~Z 1.111 0.378 -1.842 -317.004 1821.103
#> Z~~Z -5.003 4.035 4.559 0.730 44.593 3588.855
#> Y~~Y 170.591 79.635 60.896 7.085 -1.005 8.743 760.791
#> Y~X 18.307 -9.492 11.703 121.160 36.074 -2.399 51.685
#> Y~Z -13.291 42.514 -8.466 7.145 59.573 90.562 46.891
#> Y~X:Z -25.879 15.038 54.542 121.437 54.404 111.162 109.053
#> Y~X Y~Z Y~X:Z
#> X=~x2
#> X=~x3
#> Z=~z2
#> Z=~z3
#> Y=~y2
#> Y=~y3
#> x1~1
#> x2~1
#> x3~1
#> z1~1
#> z2~1
#> z3~1
#> y1~1
#> y2~1
#> y3~1
#> x1~~x1
#> x2~~x2
#> x3~~x3
#> z1~~z1
#> z2~~z2
#> z3~~z3
#> y1~~y1
#> y2~~y2
#> y3~~y3
#> X~~X
#> X~~Z
#> Z~~Z
#> Y~~Y
#> Y~X 1549.691
#> Y~Z 320.319 1596.952
#> Y~X:Z -64.348 -28.210 1511.779
#>
#> $loglik
#> [1] -17493.6
#>
#> $iterations
#> [1] 41
#>
#> $convergence
#> [1] TRUE
#>
modsem_inspect(est, what = "phi")
#> X Z
#> X 0.981
#> Z 0.200 1.017
# }