Description Usage Arguments Value See Also Examples
Function designed to extract the fixed effects from an
MCMCglmm
model object. Can either extract all
samples from the fixed effects posteriors or return the
posterior means.
1 2 3 |
object |
An |
use |
A character string indicating whether to extract all posterior samples or the mean of the posteriors. Defaults to "all". |
... |
Arguments passed on to the worker function. |
A matrix of the fixed effects
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# a simple MCMCglmm model
data(PlodiaPO)
m <- MCMCglmm(PO ~ 1, random= ~ FSfamily, data=PlodiaPO, verbose=FALSE)
# only extract average fixed effects
fixef(m, use = "mean")
# histogram of posterior samples of fixed effects
hist(fixef(m))
# matches the mean
rowMeans(fixef(m))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.