Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ All notable changes to TEPP are documented here. The format follows Keep a Chang

## [Unreleased]

- `psychometric_core` recovers the Driver, Oud, and Voelkle (2017, Table 3, p. 13 `TIPREDVAR`; p. 16 `TIPREDVARstd`; footnote 4; 2017-era ctsem `summary.ctsemFit.R`; JSS PDF re-opened 2026-09-01T19:20Z from https://www.jstatsoft.org/index.php/jss/article/download/v077i05/1104) scalar standardised time-independent predictor variance on current main after `0ce16e8` dropped the pre-consolidation code while research notes already named the map (register items 87–88). Table 3 names `TIPREDVAR` the lower-triangular `n.TIpred × n.TIpred` Cholesky matrix of time-independent predictors variance/covariance. Table 2 (p. 12) does not name `TIPREDVAR`. Page 16 prints standardised matrices with the suffix `std` when appropriate. The printed example on p. 16 is `discreteDRIFTstd`, not `TIPREDVARstd`. Footnote 4 standardises using only the relevant variance, not the total. The relevant variance for that named predictor correlation is `TIPREDVAR`, not process-dynamics `asymDIFFUSION` and not residual `MANIFESTVAR` `θ`. The 2017-era source forms `TIPREDVARstd` whenever `verbose = TRUE` and `n.TIpred > 0`, as `solve(sqrt(diag(TIPREDVAR) + ridging)) %&% TIPREDVAR`. OpenMx `%&%` is `t(A) %*% B %*% A`. Unlike `TRAITVARstd`, that formation adds `diag(c(ridging), n.TIpred)`. The default `ridging = FALSE` adds 0, not `0.0001`; that ridge is a numerical hack and is not this exact map. The 2017-era source assigns `dimnames(TIPREDVARstd)` to `TIpredNames`; that assignment matches the `n.TIpred × n.TIpred` matrix and is this map. The scalar correlation is `v / v = 1` after strictly positive `TIPREDVAR`. Form strictly positive `v` first, then `1 / √v`, then `(1 / √v) v (1 / √v)`. Unstandardised `TIPREDVAR` is defined for a zero predictor; standardised `TIPREDVAR` is not. Zero `v` makes `solve(sqrt(0))` fail in the 2017-era source and fails closed here. Unlike `TRAITVAR` / `MANIFESTTRAITVAR`, that source does not skip forming `TIPREDVARstd` when `v = 0`. Predictor variance is an event-time structural quantity, so a non-event clock fails closed. `TIPREDVAR` does not require stable `a < 0`. Distinct positive `v` recover the same 1. `θ / θ = 1` is `MANIFESTVARstd` and recovers the same number and remains a distinct named quantity. `(B / a)² v` is §7.2 `addedTIPREDVAR` and is extra process variance, not this correlation. Meredith (1993) remains unread (Unpaywall historically `is_oa: false`; Springer `content/pdf` is an HTML stub). Mislevy (1991, *Psychometrika, 56*, 177–196) remains unread on the same terms (DOI `10.1007/bf02294457`). Still not a Kalman filter, not a matrix `expm`, not ESEM estimation, not DSEM, and not ctsem estimation.
- `event_core` adds bounded Allen interval-consistency classification, atomic path-consistency closure, contradiction/resource refusals, and an explicit dependency-error fallback without claiming unrestricted global satisfiability.

- `psychometric_core` recovers the Driver, Oud, and Voelkle (2017, Table 2, p. 12 `MANIFESTTRAITVAR`; §7.1, p. 19; p. 16 `MANIFESTTRAITVARstd`; footnote 4; 2017-era ctsem `summary.ctsemFit.R`; JSS PDF re-opened 2026-08-27T14:20Z from https://www.jstatsoft.org/index.php/jss/article/download/v077i05/1104) scalar standardised manifest-trait variance on current main after `0ce16e8` dropped the pre-consolidation code while research notes already named the map (register items 83–84). Table 2 names `MANIFESTTRAITVAR` `Ψ_τ` the additional time-invariant variance-covariance on the measurement level and sets it `NULL` when there is no manifest trait. Equation 5 writes `Γ ~ N(τ, Ψ)` and names that covariance the manifest traits. Section 7.1 names manifest traits stable individual differences in indicator levels, distinct from process-level `TRAITVAR` `φ_ξ`. Page 16 prints standardised matrices with the suffix `std` when appropriate. The printed example on p. 16 is `discreteDRIFTstd`, not `MANIFESTTRAITVARstd`. Footnote 4 standardises using only the relevant variance, not the total. The relevant variance for that named indicator-level correlation is `MANIFESTTRAITVAR`, not process-level `TRAITVAR` and not residual `MANIFESTVAR` `θ`. The 2017-era source forms `MANIFESTTRAITVARstd` only when `MANIFESTTRAITVAR != 0`, as `solve(sqrt(diag(MANIFESTTRAITVAR) + ridging)) %&% MANIFESTTRAITVAR` when `verbose = TRUE`. OpenMx `%&%` is `t(A) %*% B %*% A`. Unlike `TRAITVARstd`, that formation adds `diag(c(ridging), n.manifest)`. The default `ridging = FALSE` adds 0, not `0.0001`; that ridge is a numerical hack and is not this exact map. The scalar correlation is `ψ / ψ = 1` after strictly positive `MANIFESTTRAITVAR`. Form strictly positive `ψ` first, then `1 / √ψ`, then `(1 / √ψ) ψ (1 / √ψ)`. Unstandardised `MANIFESTTRAITVAR` is defined for a zero trait; standardised `MANIFESTTRAITVAR` is not. Zero `MANIFESTTRAITVAR` skips forming `MANIFESTTRAITVARstd` in the 2017-era source and fails closed here. Indicator-level trait variance is an event-time structural quantity, so a non-event clock fails closed. `MANIFESTTRAITVAR` does not require stable `a < 0`. Distinct positive `ψ` recover the same 1. `trait / trait = 1` is `TRAITVARstd` and recovers the same number and remains a distinct named quantity. `θ` is `MANIFESTVAR` and is measurement error, not this correlation. Meredith (1993) remains unread (web search 2026-08-27T14:20Z: Springer/Cambridge Core paywalled; Unpaywall historically `is_oa: false`; Springer `content/pdf` is an HTML stub). Mislevy (1991, *Psychometrika, 56*, 177–196) remains unread on the same terms (DOI `10.1007/bf02294457`). Still not a Kalman filter, not a matrix `expm`, not ESEM estimation, not DSEM, and not ctsem estimation.
Expand Down
57 changes: 57 additions & 0 deletions crates/psychometric_core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,27 @@ pub enum PsychometricError {
/// process-dynamics `asymDIFFUSION`; `TIPREDVARstd` is the
/// correlation form of `TIPREDVAR`.
StandardisedTimeIndependentPredictorVarianceIsNotStandardisedAsymptoticDiffusion,
/// Driver p. 16 `TIPREDVARstd` was requested with a non-positive
/// `TIPREDVAR`. Unlike `TRAITVAR` / `MANIFESTTRAITVAR`, the
/// 2017-era source still forms `TIPREDVARstd` when
/// `TIPREDVAR == 0`; `solve(sqrt(0))` fails. Footnote 4
/// standardisation requires strictly positive `TIPREDVAR`.
StandardisedTimeIndependentPredictorVarianceRequiresPositivePredictorVariance,
/// Driver Table 3 unstandardised `TIPREDVAR` was treated as
/// p. 16 `TIPREDVARstd`. Unstandardised predictor variance is
/// defined for a zero predictor; standardised `TIPREDVAR` is
/// not.
UnstandardisedTimeIndependentPredictorVarianceIsNotStandardisedTimeIndependentPredictorVariance,
/// Driver p. 16 `MANIFESTVARstd` was treated as p. 16
/// `TIPREDVARstd`. Equal numbers when both correlations equal
/// 1 are still distinct named quantities. `TIPREDVAR` is
/// time-independent predictor variance; `MANIFESTVAR` is
/// contemporaneous measurement error.
StandardisedManifestVarianceIsNotStandardisedTimeIndependentPredictorVariance,
/// Driver §7.2 `addedTIPREDVAR` `(B / a)² v` was treated as
/// p. 16 `TIPREDVARstd`. Extra process variance is not the
/// correlation form of `TIPREDVAR`.
AsymptoticTimeIndependentPredictorVarianceIsNotStandardisedTimeIndependentPredictorVariance,

/// Driver p. 16 `TRAITVARstd` was requested with a non-positive
/// trait variance. The 2017-era source skips forming
Expand Down Expand Up @@ -1171,6 +1192,18 @@ impl fmt::Display for PsychometricError {
Self::StandardisedTimeIndependentPredictorVarianceIsNotStandardisedAsymptoticDiffusion => {
"standardised time-independent predictor variance is not standardised asymptotic diffusion"
}
Self::StandardisedTimeIndependentPredictorVarianceRequiresPositivePredictorVariance => {
"standardised time-independent predictor variance requires strictly positive time-independent predictor variance"
}
Self::UnstandardisedTimeIndependentPredictorVarianceIsNotStandardisedTimeIndependentPredictorVariance => {
"unstandardised time-independent predictor variance is not standardised time-independent predictor variance"
}
Self::StandardisedManifestVarianceIsNotStandardisedTimeIndependentPredictorVariance => {
"standardised measurement-error variance is not standardised time-independent predictor variance"
}
Self::AsymptoticTimeIndependentPredictorVarianceIsNotStandardisedTimeIndependentPredictorVariance => {
"asymptotic time-independent predictor variance is not standardised time-independent predictor variance"
}
Self::StandardisedTraitVarianceRequiresPositiveTraitVariance => {
"standardised trait variance requires strictly positive trait variance"
}
Expand Down Expand Up @@ -1979,6 +2012,30 @@ mod tests {
);
}

#[test]
fn standardised_time_independent_predictor_variance_boundary_messages_are_stable() {
assert_eq!(
PsychometricError::StandardisedTimeIndependentPredictorVarianceRequiresPositivePredictorVariance
.to_string(),
"standardised time-independent predictor variance requires strictly positive time-independent predictor variance"
);
assert_eq!(
PsychometricError::UnstandardisedTimeIndependentPredictorVarianceIsNotStandardisedTimeIndependentPredictorVariance
.to_string(),
"unstandardised time-independent predictor variance is not standardised time-independent predictor variance"
);
assert_eq!(
PsychometricError::StandardisedManifestVarianceIsNotStandardisedTimeIndependentPredictorVariance
.to_string(),
"standardised measurement-error variance is not standardised time-independent predictor variance"
);
assert_eq!(
PsychometricError::AsymptoticTimeIndependentPredictorVarianceIsNotStandardisedTimeIndependentPredictorVariance
.to_string(),
"asymptotic time-independent predictor variance is not standardised time-independent predictor variance"
);
}

#[test]
fn standardised_trait_variance_boundary_messages_are_stable() {
assert_eq!(
Expand Down
Loading
Loading