wpp.indicator: Accessing Data

Description Usage Arguments Value Author(s) See Also Examples

Description

An interface for accessing the underlying data, where datasets with observed and predicted data are merged. The resulting data frame is in a "melted" format.

Usage

1

Arguments

what

Name of indicator. Possible values are:

fert

Total fertililty rate. Merges datasets tfr and tfrprojMed.

leF

Female life expectancy. Merges datasets e0F and e0Fproj.

leM

Male life expectancy. Merges datasets e0M and e0Mproj.

tpop

Total population. Uses datasets with age- and sex-specific population counts and agregates over sexes and ages.

tpopF

Total female population. Uses datasets popF and popFprojMed and aggregates over ages.

tpopM

Total male population. Uses datasets popM and popMprojMed and aggregates over ages.

mig

Total net migration. The datasets migration and migproj are merged.

migrate

Annual migration rate per thousand population. For historical estimates, the rate is computed from net migration and population. The denominator is approximated with the average population ((P_{t}+P_{t-1})/2). Projections are taken from the mrateproj dataset.

popagesex

Population by sex and age. Uses merged datasets of popM with popMprojMed and popF with popFprojMed. It requires two arguments in ..., namely sexm=c("F", "M") and
agem=c("0-4", "5-9", ..., "95-99", "100+"). The function aggregates population counts over the given sex and age groups.

mortagesex

Mortality by sex and age. Uses datasets mxF and mxM. It requires two atguments in ..., namely sex which is either "F" or "M", and age which is one of ("0", "1", "5", "10", "15", "20", ... "95", "100+").

fertage

Age-specific fertility rate. Uses datasets tfr and tfrprojMed which are merged together and dataset percentASFR to derive age-specific rates. It requires one argument in ..., namely age which is one of ("15-19", "20-24", ..., "45-49").

pfertage

Percent age-specific fertility. Corresponds to the dataset percentASFR. Argument agem as defined above giving one or more age categories is required.

sexratio

Sex ratio at birth. Corresponds to the dataset sexRatio.

medage

Median age.

meanagechbear

Mean age at childbearing.

meanageinchbearage

Mean age of women in childbearing ages.

tdratio

Total dependency ratio. Ratio of population of age 0 to 14 and 65+ to population of age 15-64.

chdratio

Child dependency ratio. Ratio of population of age 0 to 14 to population of age 15-64.

oadratio

Old-age dependency ratio. Ratio of population of age 65+ to population of age 15-64.

psratio

Potential support ratio. Inverse of old-age dependency ratio.

popgrowth

Average annual population growth (log(P_t / P_{t-1})/5).

fert.ci, leF.ci, leM.ci, tpop.ci, tpopF.ci, tpopM.ci, popagesex.ci, mig.ci, migrate.ci

Lower or upper bound of the corresponding indicator. Requires argument which.pi which is one of “80”, “95”, “half.child”, and an argument bound which is either “low” or “high”. Arguments sexm and agem (as defined above, but of length one) are required for popagesex.ci.

...

Arguments passed to the underlying functions as described above.

Value

Data frame with columns charcode (alpha-2 ISO 3166 country code), Year, and value.

Author(s)

Hana Sevcikova

See Also

wpp.by.country, wpp.by.year

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	migrate <- wpp.indicator("migrate")
	## Not run: 
	# Histogram of migration rate
	print(qplot(value, data=migrate) + facet_wrap(~ Year))
## End(Not run)
	## Not run: 
	mxM01 <- wpp.indicator("mortagesex", sex="M", age="0")
	# Plot map
	plot(gvisGeoMap(wpp.by.year(mxM01, 2050), locationvar='charcode', numvar='value'))
## End(Not run)

PPgp/wppExplorerBayesMig documentation built on May 7, 2019, 11:52 p.m.