feat(psychometric): recover Eq. 5 of 2017-era three-term asymTOTALVAR on main - #345
Draft
seonghobae wants to merge 1 commit into
Draft
feat(psychometric): recover Eq. 5 of 2017-era three-term asymTOTALVAR on main#345seonghobae wants to merge 1 commit into
seonghobae wants to merge 1 commit into
Conversation
… on main Scalar map of Driver Eq. 5 of the commented ctsem 2.5.0 summary.ctsemFit.R three-term total -q/(2a)+trait/a²+(B/a)²v, then λ² of that total plus θ. Form the three-term total inline. Zero loading is exactly θ. All-zero latent contributions return θ even if a ≥ 0. a ≥ 0 with a nonzero contribution fails closed. Distinct from Eq. 5 of stationary T0VAR (trait not trait/a²). Independent of queued #330/#340/#341/#342/#343.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Independent-on-main scalar recovery of Equation 5 of the 2017-era commented three-term
asymTOTALVARmap from cran/ctsem 2.5.0summary.ctsemFit.R.Driver, Oud, and Voelkle (2017, Eq. 1, p. 4; Eq. 4–5, p. 5; Table 2, p. 12; §4.3, p. 9; §7.2, pp. 20–21; p. 16; JSS PDF re-opened 2026-08-31T05:20Z from https://www.jstatsoft.org/index.php/jss/article/download/v077i05/1104) write
dη = (Aη + b + Mχ) dt + G dWandy_i(t) = τ + Λ η_i(t) + ε_i(t)withε ~ N(0, Θ)whenΨ_τ = 0. Page 16 namesasymDIFFUSION-q / (2 a). Section 4.3 adds a stable trait whose process-mean variance istrait / a². Section 7.2 namesaddedTIPREDVAR(B / a)² v. The 2017-era source comments (not in the activeoutlist):The unstandardised three-term total is
-q / (2 a) + trait / a² + (B / a)² v. Equation 5 of that latent total isλ²of it plusθ.Form the three-term total inline (do not import unpublished #330
recover_asymptotic_trait_varianceor #340/#341asymTOTALVARhelpers). Do not export the unstandardised total.ψ = 0this slice.Contract
EventTimeRequiredotherwise).θ.θeven ifa ≥ 0.a ≥ 0with any nonzero contribution fails closed (AsymptoticTotalObservedVarianceRequiresStableDrift).1 / a, of the three-term sum, or ofλ²of that total fails closed.a = −0.5,trait = 1,q = 0.4,B = 0.5,v = 1,λ = 2,θ = 0.3recovers21.9.Refusals
asymTOTALVAR5.4is notVar(y).T0VARλ²(trait + −q / (2 a) + (B / a)² v) + θrecovers9.9on the same numbers (TRAITVARis nottrait / a²) and remains a distinct named quantity.MANIFESTVARθis notVar(y).Do not duplicate queued #330 (
trait / a²), #340 (two-termp + trait / a²), #341 (three-term unstandardised total), #342 (asymTOTALVARstd), or #343 (discreteTRAITVAR).Meredith (1993) remains unread (Springer/Cambridge paywalled; Unpaywall historically
is_oa: false). Mislevy (1991, Psychometrika, 56, 177–196, DOI 10.1007/bf02294457) remains unread on the same terms.This is not a Kalman filter, not a matrix
expm, not ESEM estimation, not DSEM, and not ctsem estimation.Test plan
cargo fmt -p psychometric_corecargo clippy -p psychometric_core --all-targets -- -D warningscargo test -p psychometric_core --all-targets(focusedasymptotic_total_observed*green; lib 189, multilevel 109, scientific_claim_boundary 53)RUSTDOCFLAGS='-D warnings' cargo doc -p psychometric_core --no-depsDo not self-approve. Do not convert #310. Do not merge without independent non-author APPROVE and exact-head required-check success.