Performs error checking on the arguments passed to cptForecast
1 2 3 4 5 6 7 8 9 10 11 | cptForecastErrorCheck(
errors = errors,
m = m,
detector = detector,
forecastErrorType = forecastErrorType,
gamma = gamma,
critValue = critValue,
alpha = alpha,
samples = samples,
npts = npts
)
|
errors |
numeric vector. Forecast errors to perform changepoint analysis upon. |
m |
numeric. Length of training period where forecast errors are assumed stable. |
detector |
character. Type of changepoint detector to use. Choice of
See details below. |
forecastErrorType |
character. Type of changes to look for. Choice of
See details below. |
gamma |
numeric. Tuning parameter used in detector. See details below. |
critValue |
character or numeric. Critical value of normalized asymptotic distribution of chosen detector under no change. Choice of
See details below |
alpha |
Type-1 error |
samples |
Only used if |
npts |
Only used if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.