View source: R/class-smoothing_options.R
set_options | R Documentation |
Set the smoothing specifications for locally weighted regression for identifying the trend and the seasonality in an equidistant time series.
set_options(
order_poly = 1,
season = NA_real_,
kernel_fun = "epanechnikov",
bwidth = NA_real_,
boundary_method = "extend"
)
order_poly |
the order of the local polynomials used for estimating the
smooth nonparametric trend; the default is |
season |
the frequency of observations per time unit, for example per
year; set to |
kernel_fun |
the weighting function to consider; supported are four
second-order kernel functions with compact support on |
bwidth |
a numeric value that indicates the relative bandwidth to
consider in the smoothing process; the default is |
boundary_method |
a single character value; it indicates, what bandwidth
method to use at boundary points; for |
An object of class "smoothing_options"
is created that contains
all required information to conduct a locally weighted regression for
decomposing a seasonal time series. The information include the order
of the trend polynomials, the frequency of the observed series, the
second-order kernel function to use in the weighting process, the
(relative) bandwidth to employ, and the boundary method for the bandwidth.
The function returns an S4 object with the following elements (access via
@
):
identical to the input argument with that name; please see the description of that input argument.
identical to the input argument with that name; please see the description of that input argument.
identical to the input argument with that name; please see the description of that input argument.
identical to the input argument with that name; please see the description of that input argument.
identical to the input argument with that name; please see the description of that input argument.
Dominik Schulz (Research Assistant) (Department of Economics, Paderborn
University),
Author and Package Creator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.