Learn R Programming

dyn (version 0.2-11.0)

dyn-package: Time Series Regression

Description

Time series regression. The dyn class interfaces ts, irts, its, zoo and zooreg time series classes to lm, glm, loess, quantreg::rq, MASS::rlm, quantreg::rq, randomForest::randomForest and other regression functions allowing those functions to be used with time series including specifications that may contain lags, diffs and missing values.

Arguments

Details

"dyn" allows one to use time series with regression functions that were not originally written to support time series by simply prefacing the call to the regression function with "dyn$". The following are sources of information on "dyn":

Overviewfile.show(system.file("README", package = "dyn"))
NewsRShowDoc("NEWS", package = "dyn")
AcknowledgementsRShowDoc("THANKS", package = "dyn")
Wish ListRShowDoc("WISHLIST", package = "dyn")
LicenseRShowDoc("COPYING", package = "dyn")
Citationcitation(package = "dyn")
List of all demo filesdemo(package = "dyn"))
Invoking a demo filedemo("dyn-rq")
Source of demo filefile.show(system.file("dyn-rq.R", package = "dyn"))
This Filepackage?dyn
Help file?dyn

Examples

Run this code
x <- ts(seq(10)^2)
dyn$lm(x ~ lag(x,-1))
dyn$glm(x ~ lag(x,-1))
dyn$loess(x ~ lag(x,-1))

Run the code above in your browser using DataLab