dicusum | R Documentation |
decision interval CUSUM control chart analysis
dicusum(x, ref.index, k)
x |
:vector of time series data |
ref.period |
: index used for reference period |
k |
: threshold differences to detect a change, also termed allowance |
returns a list of positive and negative deviations as well as reference index
Adam Cook, Adam.Cook@dfo-mpo.gc.ca
Mesnil and Pettigas 2008 Aquat Living Resour 22 187-192
x = c(1,2,3,4,5,3,2,1,2,6)
dicusum(x,1:3,0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.