Description Usage Arguments Details Value Author(s) See Also Examples
tslm
is used to fit linear models to time series including trend and
seasonality components.
1 
formula 
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. 
data 
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which lm is called. 
subset 
an optional subset containing rows of data to keep. For best
results, pass a logical vector of rows to keep. Also supports

lambda 
BoxCox transformation parameter. If 
biasadj 
Use adjusted backtransformed mean for BoxCox transformations. If transformed data is used to produce forecasts and fitted values, a regular back transformation will result in median forecasts. If biasadj is TRUE, an adjustment will be made to produce mean forecasts and fitted values. 
... 
Other arguments passed to 
tslm
is largely a wrapper for lm()
except that
it allows variables "trend" and "season" which are created on the fly from
the time series characteristics of the data. The variable "trend" is a
simple time trend and "season" is a factor indicating the season (e.g., the
month or the quarter depending on the frequency of the data).
Returns an object of class "lm".
Mitchell O'HaraWild and Rob J Hyndman
1 2 3 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.