View source: R/print.gresponse.dmm.R
print.gresponse.dmm | R Documentation |
gresponse.dmm
.
Prints overall responses only.
## S3 method for class 'gresponse.dmm'
print(x, ...)
x |
An object of class |
... |
Ellipsis argumnet. |
This is a simple printout of overall response estimates. There are no standard errors or confidence limits for response estimates.
There is no return value. Function is used for its side effects.
Neville Jackson
Functions gresponse.dmm()
, summary.gresponse.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 some response estimates, use all the defaults
sheep.resp <- gresponse(sheep.fit1,psd=list(dp=c(1,1,1)))
# print these
print(sheep.resp)
## Not run:
# can do the same thing without saving response object
gresponse(sheep.fit1,psd=list(dp=c(1,1,1)))
# so this is the default print method for an object of class 'gresponse.dmm'
## End(Not run)
#cleanup
rm(sheep.fit1)
rm(sheep.resp)
rm(sheep.mdf)
rm(sheep.df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.