Inspect model information
modsem_inspect.Rdfunction 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
dataslot"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).
"ngroups"Number of groups in model (integer).
"group"Group variable in model (character).
"group.label"Group labels (character).
"ovs"Observed variables used in model (character).
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/FALSEindicating 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.557
#> X=~x3 -2765.565 8146.575
#> Z=~z2 63.762 74.728 9240.182
#> Z=~z3 72.757 81.968 -3033.092 8777.388
#> Y=~y2 -169.977 -194.596 -158.987 -172.450 23811.626
#> Y=~y3 -177.016 -205.778 -170.036 -183.316 -8383.417 21007.771
#> x1~1 29.515 30.611 92.210 97.653 -122.137 -132.626 8012.626
#> x2~1 35.932 23.990 72.266 76.532 -95.720 -103.941 -3634.713
#> x3~1 25.929 39.508 81.009 85.790 -107.300 -116.515 -4074.443
#> z1~1 90.696 98.955 22.576 27.134 -126.628 -133.510 53.666
#> z2~1 76.777 83.768 25.690 22.978 -107.195 -113.020 45.430
#> z3~1 84.227 91.897 20.822 32.245 -117.597 -123.988 49.838
#> y1~1 -23.955 -27.010 -24.174 -28.696 -597.341 -635.313 -175.994
#> y2~1 -19.770 -22.291 -19.951 -23.683 1386.778 -524.353 -145.248
#> y3~1 -21.022 -23.703 -21.216 -25.183 -524.411 1217.328 -154.448
#> x1~~x1 -1396.172 -1483.521 17.293 27.839 -10.518 -11.357 -10.652
#> x2~~x2 2711.936 -914.338 25.917 15.856 -6.362 -14.559 -13.818
#> x3~~x3 -1033.516 2732.963 14.496 17.648 14.538 22.525 -3.615
#> z1~~z1 12.157 13.080 -1311.440 -1440.761 14.589 13.785 38.901
#> z2~~z2 33.224 27.807 2848.729 -1039.845 -2.987 0.230 12.449
#> z3~~z3 24.348 33.527 -1122.527 2976.240 -14.459 -17.574 34.502
#> y1~~y1 1.243 0.793 7.222 5.924 -1490.681 -1623.709 2.761
#> y2~~y2 3.531 -5.621 -12.343 -9.434 3046.498 -1169.239 -11.132
#> y3~~y3 -16.508 -12.652 -8.495 -10.897 -1249.382 2844.100 2.552
#> X~~X 1137.425 1267.806 -51.024 -57.981 62.962 66.074 -7.882
#> X~~Z -118.655 -133.049 111.992 130.683 32.166 34.613 -51.608
#> Z~~Z -25.936 -29.600 1157.869 1268.248 48.933 52.027 -17.095
#> Y~~Y -30.000 -43.101 -32.848 -35.161 550.940 591.073 -13.199
#> Y~X -290.121 -314.920 -40.246 -49.026 435.398 458.864 -72.179
#> Y~Z -64.496 -69.495 -275.948 -285.861 396.782 432.159 -418.710
#> Y~X:Z -292.094 -336.978 -317.981 -348.693 419.220 438.918 -77.387
#> 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.163
#> x3~1 -3193.179 8580.908
#> z1~1 42.058 47.146 7693.672
#> z2~1 35.604 39.911 -3641.256 9448.834
#> z3~1 39.058 43.784 -3994.584 -3381.545 8933.233
#> y1~1 -137.928 -154.615 -144.356 -122.202 -134.060 7704.226
#> y2~1 -113.832 -127.604 -119.137 -100.853 -110.640 -3985.348 9668.386
#> y3~1 -121.043 -135.686 -126.683 -107.242 -117.648 -4237.792 -3497.452
#> x1~~x1 13.092 14.675 49.593 41.982 46.055 -6.783 -5.598
#> x2~~x2 -42.098 -12.140 13.141 11.124 12.204 3.964 3.271
#> x3~~x3 -2.833 -25.580 31.592 26.744 29.339 5.854 4.831
#> z1~~z1 30.487 34.175 -18.031 -9.648 -10.045 -1.821 -1.503
#> z2~~z2 9.757 10.937 2.844 -13.593 3.006 -2.267 -1.871
#> z3~~z3 27.040 30.311 -9.792 -8.313 -18.263 9.398 7.757
#> y1~~y1 2.164 2.425 -4.812 -4.074 -4.467 -10.780 -4.265
#> y2~~y2 -8.724 -9.779 2.605 2.205 2.420 -4.318 -19.498
#> y3~~y3 2.000 2.242 -3.263 -2.762 -3.029 -3.881 -3.123
#> X~~X -6.178 -6.925 -31.322 -26.514 -29.099 -2.217 -1.829
#> X~~Z -40.445 -45.338 -38.575 -32.655 -35.824 55.780 46.035
#> Z~~Z -13.397 -15.018 7.934 6.715 7.398 -13.142 -10.846
#> Y~~Y -10.344 -11.595 -13.794 -11.678 -12.801 -1.112 -0.916
#> Y~X -56.568 -63.411 -399.221 -337.953 -370.747 -33.777 -27.876
#> Y~Z -328.147 -367.846 -71.459 -60.492 -66.376 -37.056 -30.582
#> Y~X:Z -60.649 -67.986 -51.627 -43.703 -47.961 129.411 106.803
#> 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.069
#> x1~~x1 -5.953 16046.235
#> x2~~x2 3.479 3562.273 22501.453
#> x3~~x3 5.137 4023.126 2496.422 18384.334
#> z1~~z1 -1.596 2.215 14.400 21.141 14803.657
#> z2~~z2 -1.989 51.943 -22.975 23.568 3284.905 22325.613
#> z3~~z3 8.249 13.123 42.398 18.640 3963.828 2882.810 19935.244
#> y1~~y1 -3.895 20.118 10.857 16.981 18.869 20.465 35.752
#> y2~~y2 -3.278 6.802 -18.913 29.468 3.031 10.420 -10.326
#> y3~~y3 -11.265 8.638 21.476 -5.541 12.899 -6.965 0.406
#> X~~X -1.944 235.669 140.954 217.284 -10.141 -15.301 -7.097
#> X~~Z 48.951 -23.280 -50.188 -62.848 12.803 13.370 -27.529
#> Z~~Z -11.533 -13.487 4.567 8.662 264.485 188.050 236.721
#> Y~~Y -0.958 87.017 35.662 97.443 85.693 57.281 64.060
#> Y~X -29.642 -170.841 -57.264 -129.191 33.324 -16.986 6.728
#> Y~Z -32.518 -22.964 16.034 4.563 -137.925 -41.688 -143.932
#> Y~X:Z 113.569 -105.379 -101.057 -73.944 -101.687 -117.098 -141.540
#> 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.964
#> y2~~y2 3727.680 23380.841
#> y3~~y3 4422.001 3348.001 18127.814
#> X~~X -3.245 0.708 5.325 3681.191
#> X~~Z 1.129 0.389 -1.829 -317.072 1821.605
#> Z~~Z -4.992 4.027 4.555 0.762 44.774 3590.300
#> Y~~Y 170.467 79.557 60.784 7.080 -0.904 8.741 760.060
#> Y~X 18.440 -9.466 11.719 121.090 36.303 -2.285 52.116
#> Y~Z -13.145 42.544 -8.431 7.417 59.738 90.385 47.402
#> Y~X:Z -25.812 15.037 54.488 121.813 54.481 111.367 109.073
#> 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.282
#> Y~Z 320.231 1596.396
#> Y~X:Z -61.366 -25.035 1511.460
#>
#> $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.022 1.215 0.918 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.035 1.219 0.952 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.672 0.568 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.022 1.215 0.918 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.035 1.219 0.952 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.672 0.568 0.718
#>
#> $partable
#> lhs op rhs label group est std.error z.value p.value ci.lower ci.upper
#> 1 X =~ x1 1 1.000 NA NA NA NA NA
#> 2 X =~ x2 1 0.803 0.013 63.817 0 0.779 0.828
#> 3 X =~ x3 1 0.914 0.014 67.615 0 0.887 0.940
#> 4 Z =~ z1 1 1.000 NA NA NA NA NA
#> 5 Z =~ z2 1 0.810 0.012 65.088 0 0.786 0.835
#> 6 Z =~ z3 1 0.881 0.013 67.616 0 0.856 0.907
#> 7 Y =~ y1 1 1.000 NA NA NA NA NA
#> 8 Y =~ y2 1 0.798 0.007 107.548 0 0.784 0.813
#> 9 Y =~ y3 1 0.899 0.008 112.583 0 0.884 0.915
#> 10 Y ~ X 1 0.672 0.031 21.650 0 0.611 0.733
#> 11 Y ~ Z 1 0.568 0.030 18.690 0 0.508 0.628
#> 12 Y ~ X:Z 1 0.718 0.028 25.828 0 0.664 0.773
#> 13 x1 ~1 1 1.022 0.024 42.752 0 0.975 1.069
#> 14 x2 ~1 1 1.215 0.020 60.825 0 1.175 1.254
#> 15 x3 ~1 1 0.918 0.022 41.349 0 0.875 0.962
#> 16 z1 ~1 1 1.011 0.024 41.533 0 0.963 1.058
#> 17 z2 ~1 1 1.205 0.020 59.232 0 1.165 1.245
#> 18 z3 ~1 1 0.915 0.022 42.022 0 0.872 0.958
#> 19 y1 ~1 1 1.035 0.033 31.358 0 0.970 1.100
#> 20 y2 ~1 1 1.219 0.027 45.394 0 1.166 1.271
#> 21 y3 ~1 1 0.952 0.030 31.765 0 0.893 1.011
#> 22 x1 ~~ x1 1 0.158 0.009 18.170 0 0.141 0.175
#> 23 x2 ~~ x2 1 0.162 0.007 23.160 0 0.148 0.176
#> 24 x3 ~~ x3 1 0.164 0.008 20.758 0 0.149 0.180
#> 25 z1 ~~ z1 1 0.167 0.009 18.505 0 0.149 0.184
#> 26 z2 ~~ z2 1 0.160 0.007 22.680 0 0.146 0.173
#> 27 z3 ~~ z3 1 0.158 0.008 20.778 0 0.143 0.173
#> 28 y1 ~~ y1 1 0.160 0.009 18.011 0 0.142 0.177
#> 29 y2 ~~ y2 1 0.154 0.007 22.687 0 0.141 0.168
#> 30 y3 ~~ y3 1 0.164 0.008 20.682 0 0.148 0.179
#> 31 X ~~ X 1 0.981 0.036 26.975 0 0.910 1.052
#> 32 X ~~ Z 1 0.200 0.024 8.242 0 0.152 0.247
#> 33 Z ~~ Z 1 1.017 0.038 26.935 0 0.943 1.091
#> 34 Y ~~ Y 1 0.980 0.038 25.932 0 0.906 1.054
#>
#> $partable.input
#> lhs op rhs group mod
#> 1 X =~ x1 1
#> 2 X =~ x2 1
#> 3 X =~ x3 1
#> 4 Y =~ y1 1
#> 5 Y =~ y2 1
#> 6 Y =~ y3 1
#> 7 Z =~ z1 1
#> 8 Z =~ z2 1
#> 9 Z =~ z3 1
#> 10 Y ~ X 1
#> 11 Y ~ Z 1
#> 12 Y ~ X:Z 1
#>
#> $loglik
#> [1] -17493.6
#>
#> $iterations
#> [1] 16
#>
#> $convergence
#> [1] TRUE
#>
#> $ovs
#> [1] "x1" "x2" "x3" "z1" "z2" "z3" "y1" "y2" "y3"
#>
#> $ngroups
#> [1] 1
#>
#> $group
#> NULL
#>
#> $group.label
#> [1] "Group1"
#>
#> $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.022
#> x2 1.215
#> x3 0.918
#> z1 1.011
#> z2 1.205
#> z3 0.915
#> y1 1.035
#> y2 1.219
#> y3 0.952
#>
#> $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.568
#>
#> $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.773 0.621 0.706 0.712 0.577 0.628 2.599
#> y2 0.617 0.496 0.564 0.569 0.461 0.501 1.947 1.709
#> y3 0.695 0.558 0.635 0.640 0.519 0.564 2.194 1.751 2.136
#>
#> $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.773 0.712 0.745 2.439
#>
#> $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.773 0.712 0.745 2.439
#> x1 0.981 0.200 0.000 0.773 1.139
#> x2 0.788 0.161 0.000 0.621 0.788 0.795
#> x3 0.897 0.183 0.000 0.706 0.897 0.720 0.984
#> z1 0.200 1.017 0.000 0.712 0.200 0.161 0.183 1.184
#> z2 0.162 0.824 0.000 0.577 0.162 0.130 0.148 0.824 0.828
#> z3 0.176 0.896 0.000 0.628 0.176 0.142 0.161 0.896 0.726 0.948
#> y1 0.773 0.712 0.745 2.439 0.773 0.621 0.706 0.712 0.577 0.628 2.599
#> y2 0.617 0.569 0.595 1.947 0.617 0.496 0.564 0.569 0.461 0.501 1.947 1.709
#> y3 0.695 0.640 0.670 2.194 0.695 0.558 0.635 0.640 0.519 0.564 2.194 1.751
#> y3
#> X
#> Z
#> X:Z
#> Y
#> x1
#> x2
#> x3
#> z1
#> z2
#> z3
#> y1
#> y2
#> y3 2.136
#>
#> $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.406 0.394 0.400 1.000
#> y2 0.442 0.425 0.435 0.400 0.387 0.394 0.924 1.000
#> y3 0.446 0.428 0.438 0.403 0.390 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.452 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.452 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.185 0.927 0.000 0.419 0.172 0.166 0.169 1.000
#> z2 0.180 0.898 0.000 0.406 0.167 0.160 0.164 0.833 1.000
#> z3 0.183 0.913 0.000 0.413 0.170 0.163 0.167 0.846 0.820 1.000
#> y1 0.484 0.438 0.454 0.969 0.449 0.432 0.442 0.406 0.394 0.400 1.000
#> y2 0.477 0.431 0.447 0.954 0.442 0.425 0.435 0.400 0.387 0.394 0.924 1.000
#> y3 0.480 0.434 0.450 0.961 0.446 0.428 0.438 0.403 0.390 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.022
#> x2 1.215
#> x3 0.918
#> z1 1.011
#> z2 1.205
#> z3 0.915
#> y1 1.178
#> y2 1.333
#> y3 1.081
#>
#> $mean.all
#> ~1
#> X 0.000
#> Z 0.000
#> X:Z 0.200
#> Y 0.144
#> x1 1.022
#> x2 1.215
#> x3 0.918
#> z1 1.011
#> z2 1.205
#> z3 0.915
#> y1 1.178
#> y2 1.333
#> y3 1.081
#>
#> $r2.all
#> Y x1 x2 x3 z1 z2 z3 y1 y2 y3
#> 0.598 0.861 0.796 0.833 0.859 0.807 0.833 0.939 0.910 0.923
#>
#> $r2.lv
#> Y
#> 0.598
#>
#> $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.923
#>
#> $res.all
#> Y x1 x2 x3 z1 z2 z3 y1 y2 y3
#> 0.402 0.139 0.204 0.167 0.141 0.193 0.167 0.061 0.090 0.077
#>
#> $res.lv
#> Y
#> 0.402
#>
#> $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.077
#>
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.022 1.215 0.918 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.035 1.219 0.952 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.672 0.568 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.557
#> X=~x3 -2765.565 8146.575
#> Z=~z2 63.762 74.728 9240.182
#> Z=~z3 72.757 81.968 -3033.092 8777.388
#> Y=~y2 -169.977 -194.596 -158.987 -172.450 23811.626
#> Y=~y3 -177.016 -205.778 -170.036 -183.316 -8383.417 21007.771
#> x1~1 29.515 30.611 92.210 97.653 -122.137 -132.626 8012.626
#> x2~1 35.932 23.990 72.266 76.532 -95.720 -103.941 -3634.713
#> x3~1 25.929 39.508 81.009 85.790 -107.300 -116.515 -4074.443
#> z1~1 90.696 98.955 22.576 27.134 -126.628 -133.510 53.666
#> z2~1 76.777 83.768 25.690 22.978 -107.195 -113.020 45.430
#> z3~1 84.227 91.897 20.822 32.245 -117.597 -123.988 49.838
#> y1~1 -23.955 -27.010 -24.174 -28.696 -597.341 -635.313 -175.994
#> y2~1 -19.770 -22.291 -19.951 -23.683 1386.778 -524.353 -145.248
#> y3~1 -21.022 -23.703 -21.216 -25.183 -524.411 1217.328 -154.448
#> x1~~x1 -1396.172 -1483.521 17.293 27.839 -10.518 -11.357 -10.652
#> x2~~x2 2711.936 -914.338 25.917 15.856 -6.362 -14.559 -13.818
#> x3~~x3 -1033.516 2732.963 14.496 17.648 14.538 22.525 -3.615
#> z1~~z1 12.157 13.080 -1311.440 -1440.761 14.589 13.785 38.901
#> z2~~z2 33.224 27.807 2848.729 -1039.845 -2.987 0.230 12.449
#> z3~~z3 24.348 33.527 -1122.527 2976.240 -14.459 -17.574 34.502
#> y1~~y1 1.243 0.793 7.222 5.924 -1490.681 -1623.709 2.761
#> y2~~y2 3.531 -5.621 -12.343 -9.434 3046.498 -1169.239 -11.132
#> y3~~y3 -16.508 -12.652 -8.495 -10.897 -1249.382 2844.100 2.552
#> X~~X 1137.425 1267.806 -51.024 -57.981 62.962 66.074 -7.882
#> X~~Z -118.655 -133.049 111.992 130.683 32.166 34.613 -51.608
#> Z~~Z -25.936 -29.600 1157.869 1268.248 48.933 52.027 -17.095
#> Y~~Y -30.000 -43.101 -32.848 -35.161 550.940 591.073 -13.199
#> Y~X -290.121 -314.920 -40.246 -49.026 435.398 458.864 -72.179
#> Y~Z -64.496 -69.495 -275.948 -285.861 396.782 432.159 -418.710
#> Y~X:Z -292.094 -336.978 -317.981 -348.693 419.220 438.918 -77.387
#> 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.163
#> x3~1 -3193.179 8580.908
#> z1~1 42.058 47.146 7693.672
#> z2~1 35.604 39.911 -3641.256 9448.834
#> z3~1 39.058 43.784 -3994.584 -3381.545 8933.233
#> y1~1 -137.928 -154.615 -144.356 -122.202 -134.060 7704.226
#> y2~1 -113.832 -127.604 -119.137 -100.853 -110.640 -3985.348 9668.386
#> y3~1 -121.043 -135.686 -126.683 -107.242 -117.648 -4237.792 -3497.452
#> x1~~x1 13.092 14.675 49.593 41.982 46.055 -6.783 -5.598
#> x2~~x2 -42.098 -12.140 13.141 11.124 12.204 3.964 3.271
#> x3~~x3 -2.833 -25.580 31.592 26.744 29.339 5.854 4.831
#> z1~~z1 30.487 34.175 -18.031 -9.648 -10.045 -1.821 -1.503
#> z2~~z2 9.757 10.937 2.844 -13.593 3.006 -2.267 -1.871
#> z3~~z3 27.040 30.311 -9.792 -8.313 -18.263 9.398 7.757
#> y1~~y1 2.164 2.425 -4.812 -4.074 -4.467 -10.780 -4.265
#> y2~~y2 -8.724 -9.779 2.605 2.205 2.420 -4.318 -19.498
#> y3~~y3 2.000 2.242 -3.263 -2.762 -3.029 -3.881 -3.123
#> X~~X -6.178 -6.925 -31.322 -26.514 -29.099 -2.217 -1.829
#> X~~Z -40.445 -45.338 -38.575 -32.655 -35.824 55.780 46.035
#> Z~~Z -13.397 -15.018 7.934 6.715 7.398 -13.142 -10.846
#> Y~~Y -10.344 -11.595 -13.794 -11.678 -12.801 -1.112 -0.916
#> Y~X -56.568 -63.411 -399.221 -337.953 -370.747 -33.777 -27.876
#> Y~Z -328.147 -367.846 -71.459 -60.492 -66.376 -37.056 -30.582
#> Y~X:Z -60.649 -67.986 -51.627 -43.703 -47.961 129.411 106.803
#> 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.069
#> x1~~x1 -5.953 16046.235
#> x2~~x2 3.479 3562.273 22501.453
#> x3~~x3 5.137 4023.126 2496.422 18384.334
#> z1~~z1 -1.596 2.215 14.400 21.141 14803.657
#> z2~~z2 -1.989 51.943 -22.975 23.568 3284.905 22325.613
#> z3~~z3 8.249 13.123 42.398 18.640 3963.828 2882.810 19935.244
#> y1~~y1 -3.895 20.118 10.857 16.981 18.869 20.465 35.752
#> y2~~y2 -3.278 6.802 -18.913 29.468 3.031 10.420 -10.326
#> y3~~y3 -11.265 8.638 21.476 -5.541 12.899 -6.965 0.406
#> X~~X -1.944 235.669 140.954 217.284 -10.141 -15.301 -7.097
#> X~~Z 48.951 -23.280 -50.188 -62.848 12.803 13.370 -27.529
#> Z~~Z -11.533 -13.487 4.567 8.662 264.485 188.050 236.721
#> Y~~Y -0.958 87.017 35.662 97.443 85.693 57.281 64.060
#> Y~X -29.642 -170.841 -57.264 -129.191 33.324 -16.986 6.728
#> Y~Z -32.518 -22.964 16.034 4.563 -137.925 -41.688 -143.932
#> Y~X:Z 113.569 -105.379 -101.057 -73.944 -101.687 -117.098 -141.540
#> 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.964
#> y2~~y2 3727.680 23380.841
#> y3~~y3 4422.001 3348.001 18127.814
#> X~~X -3.245 0.708 5.325 3681.191
#> X~~Z 1.129 0.389 -1.829 -317.072 1821.605
#> Z~~Z -4.992 4.027 4.555 0.762 44.774 3590.300
#> Y~~Y 170.467 79.557 60.784 7.080 -0.904 8.741 760.060
#> Y~X 18.440 -9.466 11.719 121.090 36.303 -2.285 52.116
#> Y~Z -13.145 42.544 -8.431 7.417 59.738 90.385 47.402
#> Y~X:Z -25.812 15.037 54.488 121.813 54.481 111.367 109.073
#> 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.282
#> Y~Z 320.231 1596.396
#> Y~X:Z -61.366 -25.035 1511.460
#>
#> $loglik
#> [1] -17493.6
#>
#> $iterations
#> [1] 16
#>
#> $convergence
#> [1] TRUE
#>
modsem_inspect(est, what = "phi")
#> X Z
#> X 0.981
#> Z 0.200 1.017
# }