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 8941.413
#> X=~x3 -2766.932 8146.859
#> Z=~z2 63.670 74.619 9240.937
#> Z=~z3 72.650 81.846 -3032.563 8778.076
#> Y=~y2 -169.923 -194.531 -158.935 -172.385 23805.709
#> Y=~y3 -176.940 -205.685 -169.987 -183.253 -8380.904 21002.167
#> x1~1 38.522 40.746 92.264 97.701 -121.952 -132.420 8013.058
#> x2~1 10.568 31.870 72.307 76.568 -95.572 -103.775 -3634.675
#> x3~1 33.657 16.786 81.063 85.840 -107.143 -116.339 -4074.718
#> z1~1 90.674 98.921 24.013 28.712 -126.452 -133.325 53.716
#> z2~1 76.737 83.718 22.173 24.307 -107.016 -112.833 45.460
#> z3~1 84.183 91.841 22.148 28.932 -117.397 -123.778 49.873
#> y1~1 -23.667 -26.686 -24.122 -28.638 -589.570 -627.065 -176.042
#> y2~1 -19.533 -22.024 -19.907 -23.635 1367.813 -517.542 -145.286
#> y3~1 -20.771 -23.420 -21.169 -25.133 -517.592 1200.597 -154.491
#> x1~~x1 -1396.871 -1484.764 17.173 27.715 -10.413 -11.257 0.222
#> x2~~x2 2717.983 -914.664 25.828 15.779 -6.281 -14.460 -13.562
#> x3~~x3 -1034.296 2742.624 14.404 17.561 14.615 22.607 -3.521
#> z1~~z1 12.114 13.022 -1311.093 -1440.284 14.661 13.862 38.914
#> z2~~z2 33.194 27.786 2849.540 -1039.664 -3.008 0.209 12.447
#> z3~~z3 24.302 33.468 -1122.292 2976.993 -14.507 -17.623 34.492
#> y1~~y1 1.223 0.770 7.235 5.936 -1490.895 -1623.967 2.763
#> y2~~y2 3.560 -5.584 -12.352 -9.441 3047.284 -1169.447 -11.120
#> y3~~y3 -16.502 -12.652 -8.481 -10.879 -1249.054 2843.420 2.562
#> X~~X 1121.519 1250.057 -50.618 -57.563 62.534 65.681 -12.072
#> X~~Z -118.650 -133.032 111.949 130.631 32.033 34.473 -51.087
#> Z~~Z -25.901 -29.560 1157.468 1267.766 48.967 52.066 -17.136
#> Y~~Y -29.967 -43.067 -32.807 -35.111 551.185 591.354 -13.141
#> Y~X -290.207 -314.990 -39.950 -48.692 435.405 458.882 -71.183
#> Y~Z -63.774 -68.688 -276.032 -285.941 396.915 432.320 -418.700
#> Y~X:Z -292.125 -337.006 -317.322 -348.007 417.904 437.509 -76.351
#> 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.365
#> x3~1 -3193.293 8581.520
#> z1~1 42.098 47.198 7693.822
#> z2~1 35.627 39.944 -3641.489 9448.661
#> z3~1 39.086 43.821 -3994.707 -3380.734 8933.037
#> y1~1 -137.961 -154.664 -144.449 -122.248 -134.106 7704.195
#> y2~1 -113.859 -127.643 -119.213 -100.891 -110.677 -3985.188 9668.266
#> y3~1 -121.072 -135.729 -126.766 -107.282 -117.688 -4237.650 -3497.306
#> x1~~x1 13.477 15.615 49.527 41.916 45.983 -6.645 -5.484
#> x2~~x2 -34.926 -11.453 13.085 11.074 12.149 4.064 3.354
#> x3~~x3 -2.589 -20.113 31.552 26.703 29.294 5.968 4.926
#> z1~~z1 30.497 34.192 -17.318 -9.996 -10.423 -1.830 -1.510
#> z2~~z2 9.755 10.938 2.581 -12.860 2.764 -2.283 -1.884
#> z3~~z3 27.031 30.306 -10.118 -8.585 -17.520 9.381 7.742
#> y1~~y1 2.166 2.430 -4.802 -4.063 -4.457 -11.194 -4.066
#> y2~~y2 -8.715 -9.769 2.610 2.209 2.424 -4.135 -19.975
#> y3~~y3 2.008 2.253 -3.249 -2.749 -3.014 -3.612 -2.899
#> X~~X -9.448 -10.564 -30.740 -26.015 -28.540 -2.367 -1.953
#> X~~Z -40.038 -44.891 -40.355 -34.152 -37.465 55.743 46.005
#> Z~~Z -13.429 -15.055 8.095 6.849 7.545 -13.134 -10.840
#> Y~~Y -10.295 -11.533 -13.721 -11.612 -12.730 -1.210 -0.996
#> Y~X -55.791 -62.559 -398.575 -337.316 -370.033 -35.509 -29.306
#> Y~Z -328.128 -367.853 -71.452 -60.469 -66.348 -37.348 -30.823
#> Y~X:Z -59.840 -67.096 -51.318 -43.429 -47.656 129.502 106.878
#> 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 8512.872
#> x1~~x1 -5.830 16047.797
#> x2~~x2 3.567 3555.475 22504.540
#> x3~~x3 5.239 4015.987 2491.402 18388.806
#> z1~~z1 -1.604 2.152 14.383 21.162 14804.925
#> z2~~z2 -2.003 51.930 -22.926 23.557 3285.733 22324.018
#> z3~~z3 8.233 13.072 42.301 18.546 3964.295 2880.053 19933.524
#> y1~~y1 -3.680 20.145 10.865 16.982 18.916 20.484 35.785
#> y2~~y2 -3.115 6.753 -18.881 29.469 3.047 10.431 -10.322
#> y3~~y3 -11.845 8.627 21.430 -5.560 12.929 -6.953 0.405
#> X~~X -2.077 264.947 158.817 239.014 -9.890 -15.275 -7.025
#> X~~Z 48.919 -23.156 -50.109 -62.780 12.785 13.400 -27.485
#> Z~~Z -11.526 -13.496 4.559 8.645 264.178 188.078 236.736
#> Y~~Y -1.045 86.915 35.631 97.389 85.918 57.378 64.158
#> Y~X -31.161 -170.792 -57.265 -129.285 33.340 -17.013 6.643
#> Y~Z -32.775 -22.694 16.203 4.783 -138.032 -41.787 -144.063
#> Y~X:Z 113.650 -105.233 -100.996 -73.859 -101.409 -117.093 -141.290
#> 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 14844.955
#> y2~~y2 3727.007 23379.567
#> y3~~y3 4421.356 3347.485 18125.983
#> X~~X -3.236 0.848 5.409 3678.980
#> X~~Z 1.124 0.387 -1.832 -316.982 1821.062
#> Z~~Z -4.996 4.033 4.550 0.729 44.466 3588.784
#> Y~~Y 170.702 79.670 60.862 7.653 -0.943 8.732 760.885
#> Y~X 18.450 -9.444 11.702 119.416 35.820 -2.213 52.143
#> Y~Z -13.147 42.566 -8.469 7.043 59.689 90.465 47.353
#> Y~X:Z -25.807 14.973 54.490 120.002 54.341 111.150 108.938
#> 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 1550.013
#> Y~Z 320.483 1596.966
#> Y~X:Z -63.646 -29.256 1511.873
#>
#> $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.024 1.217 0.921 1.011 1.205
#> z3~1 y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> 0.915 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.018 0.980 0.672 0.570 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.024 1.217 0.921 1.011 1.205
#> z3~1 y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> 0.915 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.018 0.980 0.672 0.570 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.912 0 0.779 0.828
#> 3 X =~ x3 0.914 0.013 67.731 0 0.887 0.940
#> 4 Z =~ z1 1.000 NA NA NA NA NA
#> 5 Z =~ z2 0.810 0.012 65.091 0 0.786 0.835
#> 6 Z =~ z3 0.881 0.013 67.619 0 0.855 0.907
#> 7 Y =~ y1 1.000 NA NA NA NA NA
#> 8 Y =~ y2 0.798 0.007 107.545 0 0.784 0.813
#> 9 Y =~ y3 0.899 0.008 112.581 0 0.884 0.915
#> 10 Y ~ X 0.672 0.031 21.664 0 0.612 0.733
#> 11 Y ~ Z 0.570 0.030 18.749 0 0.510 0.629
#> 12 Y ~ X:Z 0.718 0.028 25.838 0 0.664 0.773
#> 13 x1 ~1 1.024 0.024 42.854 0 0.977 1.071
#> 14 x2 ~1 1.217 0.020 60.923 0 1.177 1.256
#> 15 x3 ~1 0.921 0.022 41.450 0 0.877 0.964
#> 16 z1 ~1 1.011 0.024 41.543 0 0.963 1.059
#> 17 z2 ~1 1.205 0.020 59.242 0 1.165 1.245
#> 18 z3 ~1 0.915 0.022 42.034 0 0.873 0.958
#> 19 y1 ~1 1.037 0.033 31.397 0 0.972 1.102
#> 20 y2 ~1 1.220 0.027 45.423 0 1.167 1.273
#> 21 y3 ~1 0.954 0.030 31.803 0 0.895 1.012
#> 22 x1 ~~ x1 0.158 0.009 18.168 0 0.141 0.175
#> 23 x2 ~~ x2 0.162 0.007 23.163 0 0.148 0.176
#> 24 x3 ~~ x3 0.164 0.008 20.760 0 0.149 0.180
#> 25 z1 ~~ z1 0.167 0.009 18.503 0 0.149 0.184
#> 26 z2 ~~ z2 0.160 0.007 22.681 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.682 0 0.148 0.179
#> 31 X ~~ X 0.981 0.036 27.035 0 0.910 1.052
#> 32 X ~~ Z 0.200 0.024 8.244 0 0.152 0.248
#> 33 Z ~~ Z 1.018 0.038 26.933 0 0.944 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] 46
#>
#> $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.024
#> x2 1.217
#> x3 0.921
#> z1 1.011
#> z2 1.205
#> z3 0.915
#> 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.672 0.570
#>
#> $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.018
#>
#> $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.707 0.714 0.579 0.629 2.602
#> y2 0.618 0.496 0.564 0.570 0.462 0.502 1.950 1.711
#> y3 0.696 0.559 0.636 0.642 0.520 0.566 2.196 1.753 2.138
#>
#> $cov.lv
#> X Z X:Z Y
#> X 0.981
#> Z 0.200 1.018
#> X:Z 0.000 0.000 1.038
#> Y 0.774 0.714 0.746 2.443
#>
#> $cov.all
#> X Z X:Z Y x1 x2 x3 z1 z2 z3 y1 y2
#> X 0.981
#> Z 0.200 1.018
#> X:Z 0.000 0.000 1.038
#> Y 0.774 0.714 0.746 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.707 0.897 0.720 0.984
#> z1 0.200 1.018 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.746 2.443 0.774 0.622 0.707 0.714 0.579 0.629 2.602
#> y2 0.618 0.570 0.595 1.950 0.618 0.496 0.564 0.570 0.462 0.502 1.950 1.711
#> y3 0.696 0.642 0.671 2.196 0.696 0.559 0.636 0.642 0.520 0.566 2.196 1.753
#> y3
#> X
#> Z
#> X:Z
#> Y
#> x1
#> x2
#> x3
#> z1
#> z2
#> z3
#> y1
#> y2
#> y3 2.138
#>
#> $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.166 0.169 1.000
#> z2 0.167 0.160 0.164 0.833 1.000
#> z3 0.170 0.163 0.167 0.846 0.820 1.000
#> y1 0.449 0.432 0.442 0.407 0.394 0.401 1.000
#> y2 0.442 0.425 0.435 0.401 0.388 0.394 0.924 1.000
#> y3 0.446 0.429 0.438 0.404 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.456 0.847 0.814 1.000
#> z1 0.186 0.927 0.000 0.420 0.172 0.166 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.414 0.170 0.163 0.167 0.846 0.820 1.000
#> y1 0.484 0.439 0.454 0.969 0.449 0.432 0.442 0.407 0.394 0.401 1.000
#> y2 0.477 0.432 0.447 0.954 0.442 0.425 0.435 0.401 0.388 0.394 0.924 1.000
#> y3 0.480 0.435 0.450 0.961 0.446 0.429 0.438 0.404 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.024
#> x2 1.217
#> x3 0.921
#> z1 1.011
#> z2 1.205
#> z3 0.915
#> y1 1.180
#> y2 1.335
#> y3 1.083
#>
#> $mean.all
#> ~1
#> X 0.000
#> Z 0.000
#> X:Z 0.200
#> Y 0.144
#> x1 1.024
#> x2 1.217
#> x3 0.921
#> z1 1.011
#> z2 1.205
#> z3 0.915
#> y1 1.180
#> 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.024 1.217 0.921 1.011 1.205
#> z3~1 y1~1 y2~1 y3~1 x1~~x1 x2~~x2 x3~~x3 z1~~z1 z2~~z2 z3~~z3 y1~~y1
#> 0.915 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.018 0.980 0.672 0.570 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 8941.413
#> X=~x3 -2766.932 8146.859
#> Z=~z2 63.670 74.619 9240.937
#> Z=~z3 72.650 81.846 -3032.563 8778.076
#> Y=~y2 -169.923 -194.531 -158.935 -172.385 23805.709
#> Y=~y3 -176.940 -205.685 -169.987 -183.253 -8380.904 21002.167
#> x1~1 38.522 40.746 92.264 97.701 -121.952 -132.420 8013.058
#> x2~1 10.568 31.870 72.307 76.568 -95.572 -103.775 -3634.675
#> x3~1 33.657 16.786 81.063 85.840 -107.143 -116.339 -4074.718
#> z1~1 90.674 98.921 24.013 28.712 -126.452 -133.325 53.716
#> z2~1 76.737 83.718 22.173 24.307 -107.016 -112.833 45.460
#> z3~1 84.183 91.841 22.148 28.932 -117.397 -123.778 49.873
#> y1~1 -23.667 -26.686 -24.122 -28.638 -589.570 -627.065 -176.042
#> y2~1 -19.533 -22.024 -19.907 -23.635 1367.813 -517.542 -145.286
#> y3~1 -20.771 -23.420 -21.169 -25.133 -517.592 1200.597 -154.491
#> x1~~x1 -1396.871 -1484.764 17.173 27.715 -10.413 -11.257 0.222
#> x2~~x2 2717.983 -914.664 25.828 15.779 -6.281 -14.460 -13.562
#> x3~~x3 -1034.296 2742.624 14.404 17.561 14.615 22.607 -3.521
#> z1~~z1 12.114 13.022 -1311.093 -1440.284 14.661 13.862 38.914
#> z2~~z2 33.194 27.786 2849.540 -1039.664 -3.008 0.209 12.447
#> z3~~z3 24.302 33.468 -1122.292 2976.993 -14.507 -17.623 34.492
#> y1~~y1 1.223 0.770 7.235 5.936 -1490.895 -1623.967 2.763
#> y2~~y2 3.560 -5.584 -12.352 -9.441 3047.284 -1169.447 -11.120
#> y3~~y3 -16.502 -12.652 -8.481 -10.879 -1249.054 2843.420 2.562
#> X~~X 1121.519 1250.057 -50.618 -57.563 62.534 65.681 -12.072
#> X~~Z -118.650 -133.032 111.949 130.631 32.033 34.473 -51.087
#> Z~~Z -25.901 -29.560 1157.468 1267.766 48.967 52.066 -17.136
#> Y~~Y -29.967 -43.067 -32.807 -35.111 551.185 591.354 -13.141
#> Y~X -290.207 -314.990 -39.950 -48.692 435.405 458.882 -71.183
#> Y~Z -63.774 -68.688 -276.032 -285.941 396.915 432.320 -418.700
#> Y~X:Z -292.125 -337.006 -317.322 -348.007 417.904 437.509 -76.351
#> 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.365
#> x3~1 -3193.293 8581.520
#> z1~1 42.098 47.198 7693.822
#> z2~1 35.627 39.944 -3641.489 9448.661
#> z3~1 39.086 43.821 -3994.707 -3380.734 8933.037
#> y1~1 -137.961 -154.664 -144.449 -122.248 -134.106 7704.195
#> y2~1 -113.859 -127.643 -119.213 -100.891 -110.677 -3985.188 9668.266
#> y3~1 -121.072 -135.729 -126.766 -107.282 -117.688 -4237.650 -3497.306
#> x1~~x1 13.477 15.615 49.527 41.916 45.983 -6.645 -5.484
#> x2~~x2 -34.926 -11.453 13.085 11.074 12.149 4.064 3.354
#> x3~~x3 -2.589 -20.113 31.552 26.703 29.294 5.968 4.926
#> z1~~z1 30.497 34.192 -17.318 -9.996 -10.423 -1.830 -1.510
#> z2~~z2 9.755 10.938 2.581 -12.860 2.764 -2.283 -1.884
#> z3~~z3 27.031 30.306 -10.118 -8.585 -17.520 9.381 7.742
#> y1~~y1 2.166 2.430 -4.802 -4.063 -4.457 -11.194 -4.066
#> y2~~y2 -8.715 -9.769 2.610 2.209 2.424 -4.135 -19.975
#> y3~~y3 2.008 2.253 -3.249 -2.749 -3.014 -3.612 -2.899
#> X~~X -9.448 -10.564 -30.740 -26.015 -28.540 -2.367 -1.953
#> X~~Z -40.038 -44.891 -40.355 -34.152 -37.465 55.743 46.005
#> Z~~Z -13.429 -15.055 8.095 6.849 7.545 -13.134 -10.840
#> Y~~Y -10.295 -11.533 -13.721 -11.612 -12.730 -1.210 -0.996
#> Y~X -55.791 -62.559 -398.575 -337.316 -370.033 -35.509 -29.306
#> Y~Z -328.128 -367.853 -71.452 -60.469 -66.348 -37.348 -30.823
#> Y~X:Z -59.840 -67.096 -51.318 -43.429 -47.656 129.502 106.878
#> 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 8512.872
#> x1~~x1 -5.830 16047.797
#> x2~~x2 3.567 3555.475 22504.540
#> x3~~x3 5.239 4015.987 2491.402 18388.806
#> z1~~z1 -1.604 2.152 14.383 21.162 14804.925
#> z2~~z2 -2.003 51.930 -22.926 23.557 3285.733 22324.018
#> z3~~z3 8.233 13.072 42.301 18.546 3964.295 2880.053 19933.524
#> y1~~y1 -3.680 20.145 10.865 16.982 18.916 20.484 35.785
#> y2~~y2 -3.115 6.753 -18.881 29.469 3.047 10.431 -10.322
#> y3~~y3 -11.845 8.627 21.430 -5.560 12.929 -6.953 0.405
#> X~~X -2.077 264.947 158.817 239.014 -9.890 -15.275 -7.025
#> X~~Z 48.919 -23.156 -50.109 -62.780 12.785 13.400 -27.485
#> Z~~Z -11.526 -13.496 4.559 8.645 264.178 188.078 236.736
#> Y~~Y -1.045 86.915 35.631 97.389 85.918 57.378 64.158
#> Y~X -31.161 -170.792 -57.265 -129.285 33.340 -17.013 6.643
#> Y~Z -32.775 -22.694 16.203 4.783 -138.032 -41.787 -144.063
#> Y~X:Z 113.650 -105.233 -100.996 -73.859 -101.409 -117.093 -141.290
#> 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 14844.955
#> y2~~y2 3727.007 23379.567
#> y3~~y3 4421.356 3347.485 18125.983
#> X~~X -3.236 0.848 5.409 3678.980
#> X~~Z 1.124 0.387 -1.832 -316.982 1821.062
#> Z~~Z -4.996 4.033 4.550 0.729 44.466 3588.784
#> Y~~Y 170.702 79.670 60.862 7.653 -0.943 8.732 760.885
#> Y~X 18.450 -9.444 11.702 119.416 35.820 -2.213 52.143
#> Y~Z -13.147 42.566 -8.469 7.043 59.689 90.465 47.353
#> Y~X:Z -25.807 14.973 54.490 120.002 54.341 111.150 108.938
#> 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 1550.013
#> Y~Z 320.483 1596.966
#> Y~X:Z -63.646 -29.256 1511.873
#>
#> $loglik
#> [1] -17493.6
#>
#> $iterations
#> [1] 46
#>
#> $convergence
#> [1] TRUE
#>
modsem_inspect(est, what = "phi")
#> X Z
#> X 0.981
#> Z 0.200 1.018
# }