tr.asreml | R Documentation

## Trace an Asreml Iteration Sequence

### Description

Plots the updated values of nominated components from an `asreml` convergence sequence.

### Usage

    tr.asreml(obj, gammas = seq(along = obj$gammas),
    iter = seq(1,length(obj$monitor) - 1), loglik = FALSE,
    S2 = FALSE, Rvariance = FALSE)

### Arguments

`obj` | an `asreml` object.
`gammas` | An optional integer vector of which components to include in the plots.
`iter` | An optional integer vector of iteration numbers to include.
`loglik` | If TRUE, include the loglikelihood.
`S2` | If TRUE, plot the residual variance ratio.
`Rvariance` | If TRUE, plot the residual variance component.

### Details

`tr` extracts the `monitor` component from the object and plots a trace of the nominated components for the nominated iterations. Note that for some models the residual scale parameter may be a ratio constrained to 1.0 while for others it may be on the component scale.

### Author(s)

David Butler

### See Also

`asreml.object`

### Examples

    data(oats, package="asreml3")
    oats.asr <- asreml(yield ~ Variety*Nitrogen,
                       random = ~ Blocks/Wplots, data=oats)
    tr(oats.asr)