bayesLife (version 4.1-0)

summary.bayesLife.mcmc.set: Summary Statistics for Life Expectancy MCMCs

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

# S3 method for 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 bayesLife.mcmc
summary(object, country = NULL,
    par.names = NULL, par.names.cs = NULL, …)

Arguments

object
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.

For summary.bayesLife.mcmc, arguments thin and burnin can be passed here. In addition, both functions accept arguments passed to the summary.mcmc function of the coda package.

See Also

bayesLife.mcmc.set, summary.mcmc

Examples

Run this code
# NOT RUN {
sim.dir <- file.path(find.package("bayesLife"), "ex-data", "bayesLife.output")
m <- get.e0.mcmc(sim.dir)
summary(m, country="Czechia", burnin=20)
# }

Run the code above in your browser using DataLab