c212.summary.stats {c212}R Documentation

Summary Statistics for the Posterior Distributions in the model.

Description

Returns the Summary Statistics for the Posterior Distributions in the model.

Usage

	c212.summary.stats(raw)

Arguments

raw

The output from a model simulation (e.g. c212.BB).

Details

The function reports the mean, upper and lower bounds of the 95 standard deviation and MCMC standard error.

Value

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, hpi_lower, hpi_upper, SD and SE. For the simulation return by c212.1a the output is as follows:

list(theta.summary, gamma.summary, mu.gamma.summary,
								mu.theta.summary = mu.theta_summ,
								sigma2.gamma.summary, sigma2.theta.summary,
								mu.gamma.0.summary, mu.theta.0.summary,
								tau2.gamma.0.summary, tau2.theta.0.summary)

Additional columns which may be used to identify the individual variables are B, the body-system, and AE, the Adverse Event and interval.

Note

The MCMC error is found using the 'coda' summary function.

Author(s)

R. Carragher

Examples

data(c212.trial.data)
raw = c212.BB(c212.trial.data, burnin = 100, iter = 200)
summ = c212.summary.stats(raw)
## Not run: 
data(c212.trial.data)
raw = c212.BB(c212.trial.data)
summ = c212.summary.stats(raw)

## End(Not run)

[Package c212 version 0.98 Index]