summary-mcmc: Summary Statistics for Life Expectancy MCMCs

Description Usage Arguments Author(s) See Also Examples

Description

Summary of an object bayesLife.mcmc.set or bayesLife.mcmc, computed via run.e0.mcmc. It can be obtained either for all countries or for a specific country, and either for all parameters or for specific parameters. The function uses the summary.mcmc function of the coda package.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'bayesLife.mcmc.set'
summary(object, country = NULL, chain.id = NULL, 
    par.names = NULL, par.names.cs = NULL, meta.only = FALSE, 
    thin = 1, burnin = 0, ...)
	
## S3 method for class 'bayesLife.mcmc'
summary(object, country = NULL,
    par.names = NULL, par.names.cs = NULL, thin = 1, burnin = 0, ...)

Arguments

object

Object of class bayesLife.mcmc.set or bayesLife.mcmc.

country

Country name or code if a country-specific summary is desired.

chain.id

Identifiers of MCMC chains. By default, all chains are considered.

par.names

Country independent parameters to be included in the summary. Run e0.parameter.names() for defaults.

par.names.cs

Country-specific parameters to be included in the summary. Run e0.parameter.names.cs() for defaults.

meta.only

Logical. If it is TRUE, only meta information of the simulation is included.

thin

Thinning interval. Only used if larger than the thin argument used in run.e0.mcmc.

burnin

Number of iterations to be discarded from the beginning of each chain before computing the summary.

...

Additional arguments passed to the summary.mcmc function of the coda package.

Author(s)

Hana Sevcikova

See Also

bayesLife.mcmc.set, summary.mcmc

Examples

1
2
3
sim.dir <- file.path(find.package("bayesLife"), "ex-data", "bayesLife.output")
m <- get.e0.mcmc(sim.dir)
summary(m, country="Czechia", burnin=20)

bayesLife documentation built on April 5, 2021, 5:06 p.m.