ts_trend | R Documentation |
Trend estimation that uses stats::loess()
.
ts_trend(x, ...)
x |
ts-boxable time series, an object of class |
... |
arguments, passed to
|
a ts-boxable object of the same class as x
, i.e., an object of
class ts
, xts
, zoo
, zooreg
, data.frame
, data.table
, tbl
,
tbl_ts
, tbl_time
, tis
, irts
or timeSeries
.
Cleveland, William S., Eric Grosse, and William M. Shyu. "Local regression models." Statistical models in S. Routledge, 2017. 309-376.
ts_plot(
`Raw series` = fdeaths,
`Loess trend` = ts_trend(fdeaths),
title = "Deaths from Lung Diseases",
subtitle = "per month"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.