summary.bayesTFR.prediction {bayesTFR} | R Documentation |
Summary of a Prediction of the Total Fertility Rate
Description
Country-specific summary of an object of class bayesTFR.prediction
, created using the function tfr.predict
. The summary contains the mean, standard deviation and several commonly used quantiles of the simulated trajectories.
Usage
## S3 method for class 'bayesTFR.prediction'
summary(object, country = NULL, compact = TRUE, ...)
Arguments
object |
Object of class |
country |
Country name or code. The code can be either numeric or ISO-2 or ISO-3 characters. If it is |
compact |
Logical switching between a smaller and larger number of displayed quantiles. |
... |
A list of further arguments. |
Author(s)
Hana Sevcikova
See Also
Examples
## Not run:
sim.dir <- file.path(find.package("bayesTFR"), "ex-data", "bayesTFR.output")
pred <- tfr.predict(sim.dir=sim.dir,
output.dir=file.path(getwd(), "exampleTFRpred"),
use.tfr3=FALSE, burnin=15, verbose=TRUE)
# If the above function was run previously, do
# pred <- get.tfr.prediction(sim.dir=file.path(getwd(), "exampleTFRpred"))
summary(pred, country = "Ireland")
## End(Not run)
[Package bayesTFR version 7.4-2 Index]