bhpm.summary.stats {bhpm} | R Documentation |
Returns the Summary Statistics for the Posterior Distributions in the model.
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
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)