set_options {deseats} | R Documentation |
Specification of Smoothing Options
Description
Set the smoothing specifications for locally weighted regression for identifying the trend and the seasonality in an equidistant time series.
Usage
set_options(
order_poly = 1,
season = NA_real_,
kernel_fun = "epanechnikov",
bwidth = NA_real_,
boundary_method = "extend"
)
Arguments
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 |
Details
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.
Value
The function returns an S4 object with the following elements (access via
@
):
- order_poly
identical to the input argument with that name; please see the description of that input argument.
- season
identical to the input argument with that name; please see the description of that input argument.
- kernel_fun
identical to the input argument with that name; please see the description of that input argument.
- bwidth
identical to the input argument with that name; please see the description of that input argument.
- boundary_method
identical to the input argument with that name; please see the description of that input argument.
Author(s)
Dominik Schulz (Research Assistant) (Department of Economics, Paderborn University),
Author and Package Creator