1. Home
  2. ASReml-R 4 Commands
  3. fitted.asreml – Extract fitted values

fitted.asreml – Extract fitted values

Description

fitted.asreml extracts fitted values from an asreml object.

Usage
## S3 method for class 'asreml'
fitted(object, type = c("response", "link"), ...)
Arguments
object An asreml object.
type If “link“, the linear fit on the link scale, otherwise, if “response“, the fitted values obtained by transforming the linear predictors by the inverse link function.
... Additional arguments.
Value

A numeric vector of fitted values.

Examples
## Not run: 
data(oats)
oats.asr <- asreml(yield ~ Variety*Nitrogen, random = ~ Blocks/Wplots, data=oats)
fitted(oats.asr)

## End(Not run)
Updated on August 7, 2018

Was this article helpful?

Related Articles