bayesTFR.mcmc.meta | R Documentation |
Simulation meta object bayesTFR.mcmc.meta
used by all chains of the same MCMC simulation.
It contains information that is common to all chains. It is part of a bayesTFR.mcmc.set
object.
The object is in standard cases not to be manipulated by itself, but rather as part of a bayesTFR.mcmc.set
object.
A bayesTFR.mcmc.meta
object contains various components that correspond to the input arguments
of the run.tfr.mcmc
and run.tfr3.mcmc
functions. Furthermore, it contains components:
nr.chains |
Number of MCMC chains. |
phase |
Value 2 or 3, depending which Phase the object belongs to. |
output.dir |
Directory for storing simulation output. |
Furthermore, Phase II meta objects contain components:
A q \times n
matrix with the United Nations TFR estimates. q
is number of years (see T_end
below), n
is number of countries (see nr_countries
below). The first n_e
columns correspond to countries included in the MCMC estimation (see nr_countries_estimation
below), where n_e <= n
.
Like tfr_matrix_all
, but it has NA
values for years where no historical data is available (i.e. after the last observed time period).
Like tfr_matrix_observed
, but it has NA
values before and after country”s fertility transition.
Number of countries included in the tfr matrices.
Number of countries included in the MCMC estimation. It must be smaller or equal to nr_countries
.
Estimated start year of the fertility decline for each country (as a row index within the tfr matrices). -1 means that the decline started before start.year
.
Index of countries for which present.year
is equal to tau_c
.
Index of countries for which the projection is made using the double logistic function, i.e. high fertility countries.
Index of countries with early decline, i.e. countries for which tau_c=-1
.
Index of countries with not early decline.
Start period of the recovery phase for each country (as an index of the tfr_matrix
).
Maximum of tau_c
and 1 for each country. Thus, it is a row index of the tfr_matrix
where the fertility decline starts.
Proposal covariance matrices of \gamma_{ci}
for each country.
Number of years for which United Nations historical data are available (i.e. number of rows of tfr_matrix
).
Like T_end
but country specific.
List of arrays of length nr_countries
. These are:
name
- Region name for each country.
code
- Region code for each country.
area_name
- Area name for each country.
area_code
- Area code for each country.
country_name
- Array of country names.
country_code
- Array of country codes.
Any country indices in the bayesTFR.mcmc.meta
object are derived from this component.
Phase III meta objects contain additional components:
Indices of countries included in the Phase III estimation. It is relative to the order of countries in the region
object in the parent meta object.
Number of countries included in the estimation.
Link to the Phase II meta object.
Hana Sevcikova, Leontine Alkema
run.tfr.mcmc
, get.tfr.mcmc
, run.tfr3.mcmc
, get.tfr3.mcmc
sim.dir <- file.path(find.package("bayesTFR"), "ex-data", "bayesTFR.output")
m <- get.tfr.mcmc(sim.dir)
summary(m, meta.only = TRUE)
names(m$meta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.