summaryrefslogtreecommitdiff
path: root/man/predict.detrend.Rd
blob: d6d68f4ac43eeb771271084b55eb7aeca77855e8 (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
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/detrend.R
\name{predict.detrend}
\alias{predict.detrend}
\title{Predict method for trend fits on idframe objects}
\usage{
\method{predict}{detrend}(object, newdata = NULL, ...)
}
\arguments{
\item{object}{an object of class \code{idframe}}

\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{
Detrended \code{idframe} object based on linear trend fit
}
\examples{
data(distill)
train <- dataSlice(distill,end=60) # subset the first 60 indices
test <- dataSlice(distill,start=61) # subset from index 61 till the end
fit <- detrend(train)
Ztrain <- predict(fit)
Ztest <- predict(fit,test)
}