summaryrefslogtreecommitdiff
path: root/man/demean.Rd
blob: 7359222ec4afa716148aa50f6bb98ec471710d2c (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
31
32
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/demean.R
\name{demean}
\alias{demean}
\title{Mean-Center the data}
\usage{
demean(data)
}
\arguments{
\item{data}{an object of class \code{idframe}}
}
\value{
A list containing the following elements

\tabular{ll}{
   \code{fitted.values} \tab \code{idframe} object with mean-centered variables \cr
   \code{output.mean} \tab \code{vector} containing means for each output variable \cr
   \code{input.mean} \tab \code{vector} containing means for each input variable
 }
}
\description{
Mean Centers the input and output matrices.
}
\examples{
data(cstr)
fit.mean <- demean(cstr)
cstr_demean <- predict(fit.mean)
}
\seealso{
\code{\link{predict.demean}}, \code{\link[stats]{colMeans}}
}