View source: R/print.gsummary.dmm.R
print.gsummary.dmm | R Documentation |
gsummary.dmm
.
Formats each attribute of a gsummary.dmm
object for printing, adding appropriate headings.
## S3 method for class 'gsummary.dmm'
print(x, ...)
x |
An object of class |
... |
Ellipsis argument |
Each table in an object of class gsummary.dmm
is a dataframe. This method uses the default dataframe print method to format each table for printing, passing the digits
attribute from the gsummary.dmm
object to the print call.
There is no return value. Function is used for its side effects.
Neville Jackson
Function gsummary.dmm()
.
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 'gsummary.dmm' object, use all the defaults
sheep.gsum <- gsummary(sheep.fit1)
# print the summary of genetic parameters
print(sheep.gsum)
## Not run:
# can do the same thing without saving response object
gsummary(sheep.fit1)
# so this is the default print method for an object of class 'gsummary.dmm'
## End(Not run)
#cleanup
rm(sheep.fit1)
rm(sheep.gsum)
rm(sheep.mdf)
rm(sheep.df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.