parameters: Extract summaries of parameter estimates from a...

View source: R/helper-functions.R

parametersR Documentation

Extract summaries of parameter estimates from a SummaryResults object.

Description

Given an object of class SummaryResults, extract a data.frame containing summaries of parameter estimates. See the documentation for fetchSummary for details of the summaries.

Usage

parameters(object)

Arguments

object

An object of class SummaryResults.

Value

A data.frame.

See Also

fetchSummary

Examples

deaths <- demdata::VADeaths2
popn <- demdata::VAPopn
deaths <- round(deaths)
deaths <- Counts(deaths)
popn <- Counts(popn)
filename <- tempfile()
model <- Model(y ~ Poisson(mean ~ age + sex),
               jump = 0.5)
estimateModel(model = model,
              y = deaths,
              exposure = popn,
              filename = filename,
              nBurnin = 50,
              nSim = 50,
              nChain = 2,
              parallel = FALSE)
summary.est <- fetchSummary(filename)
parameters(summary.est)

StatisticsNZ/demest documentation built on Nov. 2, 2023, 7:56 p.m.