Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name: op-mat-sem
description: Structural equation model (CFA, path model, higher-order factors) in lavaan / semopy syntax, fitted by maximum likelihood to the members' covariance — semopy's estimates, SEs, z, p, standardized estimates and fit indices (chi-square, CFI, TLI, RMSEA, AIC, BIC); listwise, frequency-weighted.
kind: operator
category: MAT
operator: MAT_SEM
type: reference
applies_to: process, compose, predict
examples_tags: [matrix, multivariate]

Use when

Whether a theory of how measures hang together holds: the hidden qualities they reflect, how those drive each other, how well it fits.

Questions it answers:

  • Do these brand-image items load on the five personality dimensions we designed them for, and does the model fit?
  • How strongly does the overall quality we measure through these three sub-scales drive satisfaction and loyalty?

Params

NameTypeDefaultDescription
modelstring—lavaan.
meanstructureboolfalseMeans; x ~ 1 too.
groupstring—Multi-group fit.
group_referencestring—Primary level.
group_equallist—Invariance.
group_partiallist—Freed rows.
group_levelsarray—sem-groups.
resampleenum—bootstrap: SE, p, CI.
bootstrap_itersint1000B.
rng_seedint0—
ci_levelfloat0.95—
estimatorenummlRatings: sem-ordinal.
orderedlist——
parameterizationenumdelta—
solverenumslsqpfisher.
informationenumdense—
ftolfloat1e-06—
max_iterint——
grad_tolfloat1e-10—
singularenumnearest—
missingenumlistwise—
max_drop_sharefloat—Warn.
fitstring—Bound fit.

Inputs

The model’s observed variables.

Output

primary: Σ(θ̂). auxiliary.estimates: rows lval op rval × estimate, std, SE, z, p (+ ci_*); residual_covariance S − Σ; implied_means / observed_means. vectors: parameter, free; scalars: fit indices.

Reading the output

  • primary.values: Each cell is the covariance the fitted model implies between the row’s and the column’s measure, in their own units. Compared with the observed covariance (auxiliary.residual_covariance is the difference), it shows where the model reproduces the data and where it does not.
  • scalars.chi2_p_value: a p-value. Below alpha (0.05 unless the request sets another) the result is called significant; that is not the same as important, so read the effect size for how big it is.

Components

  • min_pair_n / max_pair_n never (listwise).

Contract

  • Member types (vector, fields): f32, f64, packed_bool, u16, u32, u4, u64, u8 (packed_bool only under coerce: "binary"; a vec_* field’s elements are members); any other is PULSE_VECTOR_MEMBER_TYPE.
  • Weight: weighted under frequency weights only; a probability weight is PULSE_WEIGHT_UNSUPPORTED.
  • Multiplicity: its own multiplicity block (an inherited one never reaches it) adds p_adjusted and significant_adjusted beside estimates p_value, every row with a p one hypothesis; families request, matrix (default).
  • Streaming: streamable; partial states merge; components mergeable.
  • Components: n, n_null, n_listwise_dropped; optional min_pair_n, max_pair_n, sum_weights, n_eff, n_weight_invalid.

Gotchas

See