Description Usage Arguments Details Value Note Author(s) Examples
View source: R/c212.summary.stats.R
Returns the Summary Statistics for the Posterior Distributions in the model.
1 |
raw |
The output from a model simulation (e.g. c212.BB). |
The function reports the mean, upper and lower bounds of the 95 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, hpi_lower, hpi_upper, SD and SE. For the simulation return by c212.1a the output is as follows:
1 2 3 4 5 | 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.
The MCMC error is found using the 'coda' summary function.
R. Carragher
1 2 3 4 5 6 7 8 9 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.