gprint.dmm: Print method for genetic parameters contained in an object of...

View source: R/gprint.dmm.R

gprint.dmmR Documentation

Print method for genetic parameters contained in an object of class dmm.

Description

Provide a short description of the model fitted and the genetic parameters obtained for an object of class dmm.

Usage

## S3 method for class 'dmm'
gprint(x, traitset = "all", gls = F, ...)

Arguments

x

An object of class dmm.

traitset

A vector containing the names of the subset of traits for which genetic parameters are to be printed. Default is "all" which means to print parameters for all traits present in object x.

gls

Logical flag: should the parameter estimates by GLS-b method be printed in addition to the parameter estimates by OLS-b method? Default is gls=FALSE. The GLS-b parameters can only be printed if object x contains the attribute gls, that is if x was constructed by a dmm() call with parameter gls=TRUE.

...

Ellipsis argument.

Details

This is a short printout without standard errors or confidence limits. It is the analog of print() for a dmm object, but with genetic parameters instead of variance components. For a more extensive printout with standard errors and confidence limits, see function gsummary().

Value

There is no return value. Function is used for its side effects.

Author(s)

Neville Jackson

See Also

Functions gprint(), gsummary().

Examples


library(dmm)
data(sheep.df)
sheep.mdf <- mdf(sheep.df,pedcols=c(1:3),factorcols=c(4:6),ycols=c(7:9),
             sexcode=c("M","F"),relmat=c("E","A","D"))

# make a simple fit object - OLS-b only
sheep.fit1 <- dmm(sheep.mdf, Ymat ~ 1 + Year + Sex,
    components=c("VarE(I)","VarG(Ia)"))
# look at parameters for two traits
gprint(sheep.fit1,traitset=c("Cww","Diam"))
rm(sheep.fit1)
rm(sheep.mdf)
rm(sheep.df)

dmm documentation built on July 26, 2023, 5:23 p.m.