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"),
  value = c("cell", "cumulative"),
  ...
)

Arguments

object

An asreml object.

type

If "link", the fitted values are on the link scale. Otherwise, if "response", these are obtained by transforming the linear predictors by the inverse link function.

value

If type ="response" and object is a multinomial threshold model, then "cell" returns cell probabilities, else if "cumulative" then cumulative probabilities are returned.

...

Additional arguments.

Value

A numeric vector of fitted values.

Examples


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

## End(Not run)


[Package asreml version 4.2.0.480 Index]