r is the EWMA weight parameter (0 < r  1)
xij is the jth measurement in the ith subgroup, with j = 1, 2, 3,..., ni
ni is the sample size of the ith subgroup
k is the number of standard deviations
Xw is the weighted average of subgroup means

Help created on 9/19/2017