feat(psychometric): recover 2017-era commented asymTOTALVAR after addedTIPREDVAR on main - #341
Draft
seonghobae wants to merge 1 commit into
Draft
Conversation
…edTIPREDVAR on main Recover the later commented three-term total -q/(2a) + trait/a² + (B/a)² v independently of queued two-term #340. Form the two-term total first, then include addedTIPREDVAR, then add.
|
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 was referenced Aug 31, 2026
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
psychometric_corerecovers the 2017-era commented-outasymTOTALVARafteraddedTIPREDVARas the three-term scalar-q / (2 a) + trait / a² + (B / a)² von current main.This is an independent successor of queued two-term
asymTOTALVAR(#340). It does not depend on unpublished crates and is not stacked on #340. Table 2/3 do not nameasymTOTALVAR. 2017-era ctsemsummary.ctsemFit.R(cran/ctsem 2.5.0) commentsasymTOTALVAR <- asymDIFFUSION + asymTRAITVARwithasymTRAITVAR <- solve(DRIFT) %*% TRAITVAR %*% t(solve(DRIFT)), then later commentsasymTOTALVAR <- asymTOTALVAR + addedTIPREDVARimmediately after formingaddedTIPREDVAR <- asymTIPREDEFFECT %*% TIPREDVAR %*% t(asymTIPREDEFFECT). Driver, Oud, and Voelkle (2017, Eq. 1, p. 4; Eq. 4, p. 5; Table 2, p. 12; §4.3, p. 9; §7.2, pp. 20–21; JSS PDF re-opened 2026-08-31T04:40Z) writedη = (Aη + ξ + Bz + Mx) dt + G dW. The Lyapunov within-subject variance isasymDIFFUSION-q / (2 a). At a stable equilibrium a random intercept inCINTunits has process-mean variancetrait / a². Section 7.2 namesaddedTIPREDVARthe stable between-subject variance accounted for by a time-independent predictor,(B / a)² v. Form the two-term total first (1 / a, then square, then multiply bytrait, then addasymDIFFUSION). Then includeaddedTIPREDVAR(unit asymptotic effect, then square, then multiply byv). Then add. This crate does not currently exportrecover_asymptotic_total_varianceorrecover_asymptotic_trait_variance; form those terms inline.A zero trait, a zero diffusion, and a zero TI extra is exactly zero even if
a ≥ 0.a ≥ 0with a nonzero contribution fails closed. A zero TI extra keeps the two-term total. A zero trait and a zero diffusion keepaddedTIPREDVAR.p + trait / a²is the two-term commented total and is not this map whenaddedTIPREDVAR ≠ 0. StationaryT0VARtrait + p + (B / a)² vkeepsTRAITVARin process units and is not this map.(B / a)² visaddedTIPREDVARand equals this total whenq = 0andtrait = 0and remains a distinct named quantity.Numeric:
a = -0.5,trait = 1,q = 0.4,B = 0.5,v = 1→p = 0.4,trait / a² = 4,(B / a)² v = 1, total5.4. Two-term4.4and stationaryT0VAR2.4are the refuses.Still not a Kalman filter, not a matrix
expm, not ESEM estimation, not DSEM, and not ctsem estimation. Meredith (1993) and Mislevy (1991) remain unread (closed OA).Claim boundary
p + trait / a²as this later three-term total.T0VARtrait + p + (B / a)² vas this map.addedTIPREDVAR(B / a)² vas this total.asymTOTALVAR.asymTOTALVARstdin this PR.Test plan
cargo fmt --allcargo clippy -p psychometric_core --all-targets -- -D warningscargo test -p psychometric_core --all-targetsRUSTDOCFLAGS='-D warnings' cargo doc -p psychometric_core --no-depsDo not convert #310. Do not self-approve. Do not merge without independent non-author APPROVE and exact-head required-check success.