View source: R/regarima_spec.R
add_outlier | R Documentation |
Generic function to add outliers or Ramp regressors (add_outlier()
and add_ramp()
)
to a specification or to remove them (remove_outlier()
and remove_ramp()
).
add_outlier(x, type, date, name = sprintf("%s (%s)", type, date), coef = 0) remove_outlier(x, type = NULL, date = NULL, name = NULL) add_ramp(x, start, end, name = sprintf("rp.%s - %s", start, end), coef = 0) remove_ramp(x, start = NULL, end = NULL, name = NULL)
x |
the specification. |
type, date |
type and date of the outliers. Possible |
name |
the name of the variable (to format print). |
coef |
the coefficient. If equal to 0 the outliers/ramps are estimated. |
start, end |
dates of the ramp regressor. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.