Learn R Programming

asremlPlus (version 4.4.46)

printFormulae.asreml: Prints the formulae from an asreml object.

Description

Prints the formulae nominated in the which argument from the call stored in an asreml object.

Usage

# S3 method for asreml
printFormulae(asreml.obj, which = c("fixed", "random", "residual"), 
              expanded = FALSE, envir = parent.frame(), ...)

Value

Invisibly returns a character, each element of which contains one of the extracted

formulae.

Arguments

asreml.obj

An asreml object resulting from the fitting of a model using REML.

which

A character listing the formula(e) to be printed from the call stored in asreml.obj. It should be some combination of fixed, random, residual, sparse and all. If all is included then all formula(e) will be printed.

expanded

A logical indicating whether terms are to be expanded to the sum of a set of individual terms.

envir

The environment in which the formula(e) are to be evaluated. May also be NULL, a list, a data.frame, a pairlist or an integer as specified to sys.call.

...

Arguments passed on to getFormulae.asreml and ultimately to update.formula and terms.formula.

Author

Chris Brien

See Also

printFormulae.asreml

Examples

Run this code
if (FALSE) {
   data(Wheat.dat)
   current.asr <- asreml(yield ~ Rep + WithinColPairs + Variety, 
                         random = ~ Row + Column + units,
                         residual = ~ ar1(Row):ar1(Column), 
                         data=Wheat.dat)
    printFormulae(current.asr)
}

Run the code above in your browser using DataLab