tfr.median.set.all {bayesTFR}R Documentation

Editing median for estimation and projections.

Description

These functions are to be used by expert analysts. They allow to change the estimation and projection medians to specific values.

Usage

tfr.median.set.all(sim.dir, country, values, years = NULL)

tfr.median.reset.estimation(sim.dir, countries)

Arguments

sim.dir

Directory containing the prediction object.

country

Name or numerical code of a country.

countries

Vector of country names or codes.

values

Array of the new median values.

years

Numeric vector giving years which values correspond to. Ideally it should be of the same length as values.

Details

Expert analysts can use these functions to adjust both prediction and estimation medians. Estimation medians can only be adjusted if the simulation was performed with uncertainty = TRUE. In such a case years can include past time periods. By default a union of estimation and projection time periods is considered when matched to values.

Function tfr.median.reset.estimation resets previous adjustments obtained using tfr.median.set.all.

Value

Output is a list. If there are time periods matched to estimation, an object of class bayesTFR.mcmc.meta is included in the element meta. If there are time periods matched to years in prediction, then an object of class bayesTFR.prediction is included in the element pred.

Author(s)

Peiran Liu


[Package bayesTFR version 7.0-5 Index]