View source: R/set_critical_value.r
set_critical_value | R Documentation |
Set outlier critical value using the Ljung algorithm as given in Ljung, G. M. (1993). On outlier detection in time series. Journal of Royal Statistical Society B 55, 559-567.
set_critical_value(number_observations, cv_alpha = 0.01)
number_observations |
number of observations tested for outliers |
cv_alpha |
alpha for critical value |
outlier critical value generated by the algorithm given in Ljung (1993). The critical value in X-13 is different as it is adjusted to allow for smaller values to approximate the normal distribution.
this_critical_value <- set_critical_value(12, 0.025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.