fitted.asreml {asreml}R Documentation

Extract fitted values.

Description

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)


[Package asreml version 4.1.0.106 Index]