give.summary: Brief summary for the chain(s) obtained using the MCMC.

Description Usage Arguments Value Author(s) Examples

Description

This function computes a sample mean, quantiles and a Bayesian p-value which is defined as

2 * min(n[-], n[+]),

where n[-] is the number of the sampled values which are negative and n[+] is the number of sampled values which are positive.

Usage

1
give.summary(sample, probs=c(0.5, 0.025, 0.975))

Arguments

sample

a data frame or a vector with sampled values

probs

probabilities of the quantiles that are to be computed

Value

A matrix or a vector with the sample mean, quantiles and a Bayesian p-value.

Author(s)

Arnošt Komárek arnost.komarek[AT]mff.cuni.cz

Examples

1
2
3
4
5
6
7
## Example with a sample stored in a vector:
sample <- rnorm(1000)
give.summary(sample)

## Example with a sample stored in a data.frame:
sample <- data.frame(x=rnorm(1000), y=rgamma(1000, shape=1, rate=1))
give.summary(sample)


Search within the bayesSurv package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.