diff options
author | Suraj Yerramilli | 2015-02-11 20:56:41 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2015-02-11 20:56:41 +0530 |
commit | 6f0ea5bf4c83111ef469886d21a1612bd394a2eb (patch) | |
tree | 46422dc78dbe36ccefc714c8ca8282056d834179 /man/predict.detrend.idframe.Rd | |
parent | a1912915b20ed0e475ce69495e2b6292b57bea98 (diff) | |
download | SysID-R-code-6f0ea5bf4c83111ef469886d21a1612bd394a2eb.tar.gz SysID-R-code-6f0ea5bf4c83111ef469886d21a1612bd394a2eb.tar.bz2 SysID-R-code-6f0ea5bf4c83111ef469886d21a1612bd394a2eb.zip |
added documentation
Diffstat (limited to 'man/predict.detrend.idframe.Rd')
-rw-r--r-- | man/predict.detrend.idframe.Rd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/man/predict.detrend.idframe.Rd b/man/predict.detrend.idframe.Rd new file mode 100644 index 0000000..933a907 --- /dev/null +++ b/man/predict.detrend.idframe.Rd @@ -0,0 +1,31 @@ +% Generated by roxygen2 (4.1.0): do not edit by hand +% Please edit documentation in R/detrend.R +\name{predict.detrend.idframe} +\alias{predict.detrend.idframe} +\title{Predict method for trend fits on idframe objects} +\usage{ +\method{predict}{detrend.idframe}(object, newdata = NULL, ...) +} +\arguments{ +\item{object}{an object of class \code{idframe}} + +\item{newdata}{An optional idframe object in whic to look for variables with which +to predict. If ommited, the original detrended idframe object is used} +} +\value{ +an \code{idframe} object +} +\description{ +Detrended \code{idframe} object based on linear trend fit +} +\examples{ +## Examples for train and test sets +data(cstr) +splitList <- dataPartition(cstr,p=0.6) +train <- splitList$estimation # training set +test <- splitList$validation # testing set +fit <- detrend(trend) +train_detrend <- predict(fit) +test_detrend <- predict(fit,newdata=test) +} + |