View source: R/summary.mulTree.R
summary.mulTree | R Documentation |
mulTree
dataSummarises the MCMCglmm
models calculated from multiple trees by caculating the highest density regions (hdr
) of the fixed and random terms.
## S3 method for class 'mulTree'
summary(
mulTree.results,
prob = c(50, 95),
use.hdr = TRUE,
cent.tend = stats::median,
...
)
mulTree.results |
A |
prob |
One or more precentage values for to be the credibility intervals ( |
use.hdr |
Logical, whether to calculate the highest density region using |
cent.tend |
A function for calculating the central tendency ( |
... |
Any optional arguments to be passed to the |
When using the highest density region caculation method (use.hdr = TRUE
), the returned central tendency is always the first estimated mode (see hdr
).
Note that the results maybe vary when using use.hdr = FALSE
or TRUE
.
We recommend to use use.hdr = TRUE
when possible.
When use.hdr = FALSE
, the computation is faster but the quantiles are calculated and not estimated.
When use.hdr = TRUE
, the computation is slower but the quantiles are estimated using the highest density regions.
The given estimates central tendency is calculated as the mode of the estimated highest density region.
For speeding up the calculations, the bandwidth (h
argument) from hdr
can be estimated by using bw.nrd0
.
A matrix
of class mulTree
.
Thomas Guillerme
mulTree
, read.mulTree
, plot.mulTree
## Read in the data
data(lifespan.mcmc)
## Summarizing all the chains
summary(lifespan.mcmc)
## Modyfing the CI
summary(lifespan.mcmc, prob = 95)
## Using use.hdr = FALSE
summary(lifespan.mcmc, use.hdr = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.