mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
fix(medications): widen the medication-effect intervals to a week of lag
The automatic Newey-West rule gives a lag of 3 on 30 to 270 daily values, which leaves most of a physiological series' carry-over out of the intervals. The lag is now at least 7. Reference values are recomputed with statsmodels at the new default, and the lag-3 values stay pinned with an explicit lag. A fit whose residual autocorrelation exceeds 0.5 is flagged, and the card, the clinician view and the PDF say the ranges may still be too narrow.
This commit is contained in:
1 parent
99dfd68aad
commit
cfd7c18d48
19 files changed
+208
-31
No files matched your search
@@ -54898,12 +54898,18 @@ components:
|
||||
type: integer
|
||||
minimum: -9007199254740991
|
||||
maximum: 9007199254740991
|
||||
description: "Newey–West lag applied: the automatic rule, at least 7 (a week of daily carry-over)."
|
||||
autocorrelationCaveat:
|
||||
type: boolean
|
||||
description: "True when the lag-1 residual autocorrelation exceeds 0.5: the carry-over is strong enough that the
|
||||
intervals may still be too narrow, and the read-out says so."
|
||||
required:
|
||||
- n
|
||||
- df
|
||||
- rSquared
|
||||
- residualAutocorrelation
|
||||
- hacLag
|
||||
- autocorrelationCaveat
|
||||
additionalProperties: false
|
||||
- type: "null"
|
||||
confounders:
|
||||
|
||||
Reference in new issue
Block a user