Description Usage Arguments Details Value Note Author(s) Examples
View source: R/bhpm.summary.stats.R
Returns the Summary Statistics for the Posterior Distributions in the model.
1 | bhpm.summary.stats(raw, prob)
|
raw |
The output from a model simulation (e.g. bhpm.cluster.BB.hier3). |
prob |
The probability level for HPI. Default is 0.95. |
The function reports the mean, upper and lower bounds of the HPI (highest probabily interval), the standard deviation and MCMC standard error.
Returns a list of the summary statistics for each sampled variable. Each element of the list is a data.frame containing at least the columns mean, median, hpi_lower, hpi_upper, SD and SE. Columns which may be used to indentify the individual variables are Outcome.Grp, Outcome, and Cluster.
The MCMC error is found using the 'coda' summary function.
R. Carragher
1 2 3 4 5 6 7 8 9 | data(bhpm.cluster.data1)
data <- subset(bhpm.cluster.data1, Cluster == '0.0-180.0')
raw = bhpm.npm(data, burnin = 100, iter = 200)
summ = bhpm.summary.stats(raw)
data(bhpm.cluster.data1)
raw = bhpm.npm(bhpm.cluster.data1)
summ = bhpm.summary.stats(raw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.