tfr.median.set.all {bayesTFR} | R Documentation |
These functions are to be used by expert analysts. They allow to change the estimation and projection medians to specific values.
tfr.median.set.all(sim.dir, country, values, years = NULL,
burnin = 0, thin = 1)
tfr.median.reset.estimation(sim.dir, countries)
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 |
burnin |
Burnin to use when computing the estimation median. |
thin |
Thinning interval to use when computing the estimation median. |
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
.
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
.
Peiran Liu