Learn R Programming

dmm (version 2.1-7)

print.summary.dmm: Print method for an object of class summary.dmm.

Description

Formats each attribute of a summary.dmm object for printing, adding appropriate headings.

Usage

# S3 method for summary.dmm
print(x, ...)

Value

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

Arguments

x

An object of class summary.dmm.

...

Ellipsis argument.

Author

Neville Jackson

Details

Each table in an object of class summary.dmm is a dataframe. This method uses the default dataframe print method to format each table for printing, passing the digits attribute from the summary.dmm object to the print call.

See Also

Function summary.dmm().

Examples

Run this code

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"))
# make a simple fit object - OLS-b only
sheep.fit1 <- dmm(sheep.mdf, Ymat ~ 1 + Year + Sex,
    components=c("VarE(I)","VarG(Ia)"))
# compute a 'summary.dmm' object, use all the defaults
sheep.sum <- summary(sheep.fit1)
# print the summary of genetic parameters
print(sheep.sum)
if (FALSE) {
# can do the same thing without saving response object
summary(sheep.fit1)
# so this is the default print method for an object of class 'summary.dmm'
}
#cleanup
rm(sheep.fit1)
rm(sheep.sum)
rm(sheep.mdf)
rm(sheep.df)

Run the code above in your browser using DataLab