summaryrefslogtreecommitdiff
path: root/man/predict.detrend.Rd
blob: e91fb7e53ef8252312cfae55118e9fac92371e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocess.R
\name{predict.detrend}
\alias{predict.detrend}
\title{Detrend data based on linear trend fits}
\usage{
\method{predict}{detrend}(model, newdata = NULL, ...)
}
\arguments{
\item{model}{an object of class \code{detrend}}

\item{newdata}{An optional idframe object in which to look for variables with 
which to predict. If ommited, the original detrended idframe object is used}
}
\value{
an \code{idframe} object
}
\description{
Returns detrended \code{idframe} object based on linear trend fit
}
\examples{
data(cstr)
train <- dataSlice(cstr,end=5000)
test <- dataSlice(cstr,start=6001)
fit <- detrend(train)
Ztrain <- predict(fit)
Ztest <- predict(fit,test)

}