You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 6. EWMA calculation description: Most of the next steps will involve calculating the exponentially weighted moving average for each subject and parameter. I will
70
70
# describe how to calculate EWMASDs, and will describe how it needs to be varied in subsequent steps.
71
71
# a. The overall goal of the EWMASD calculation is to identify the difference between the SD-score and what we might predict that DS-score should be, in order to
72
72
# determine whether it should be excluded.
73
73
# b. Only nonmissing SD-scores for a parameter that are not designated for exclusion are included in the following calculations.
74
-
# c. For each SD-score SDi and associated agedaysi calculate the following for every other z-score (SDj...SDn) and associated agedays (agedaysj...agedaysn) for the
74
+
# c. For each SD-score SDi and associated agedaysi calculate the following for every other measurement (SDj...SDn) and associated agedays (agedaysj...agedaysn) for the
75
75
# same subject and parameter
76
76
# i. (delta)Agej=agedaysj-agedaysi
77
77
# ii. EWMAZ=SDi=[(sigma)j->n(SDj*((5+(delta)Agej)^-1.5))]/[ (sigma)j->n((5+(delta)Agej)^-1.5)]
78
78
# iii. For most EWMASD calculations, there are 3 EWMASDs that need to be calculated. I will note if not all of these need to be done for a given step.
79
79
# 1. EWMASDall calculated as above
80
80
# 2. EWMAZbef calculated excluding the SD-score just before the SD-score of interest (sorted by agedays). For the first observation for a parameter for a
81
81
# subject, this should be identical to EWMASDall rather than missing.
82
-
# 3. EWMAZaft calculated excluding the z-score just after the SD-score of interest (sorted by agedays). For the lastobservation for a parameter for a subject,
82
+
# 3. EWMAZaft calculated excluding the measurement just after the SD-score of interest (sorted by agedays). For the lastobservation for a parameter for a subject,
83
83
# this should be identical to EWMASDall rather than missing.
84
84
# iv. For each of the three EWMASDs, calculate the dewma_*=SD-EWMASD
85
85
# d. EWMASDs and (delta)EWMASDs will change if a value is excluded or manipulated using one of the methods below, therefore EWMASDs and (delta)EWMASDs be recalculated for each
0 commit comments