Learn R Programming

dmm (version 2.1-7)

gprint: Generic function for printing 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

gprint(x, ...)

Value

There is no return value.

Arguments

x

An object of class dmm.

...

See other arguments defined for function gprint.dmm().

Author

Neville Jackson

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(). If there are class specific components and genetic parameters, the short printout is repeated for each class.

See Also

Function gprint.dmm().

Examples

Run this code

library(dmm)
# Prepare the dataset sheep.df
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 2 traits
gprint(sheep.fit1,traitset=c("Cww","Diam"))

rm(sheep.fit1)
rm(sheep.mdf)
rm(sheep.df)

Run the code above in your browser using DataLab