Learn R Programming

⚠️There's a newer version (0.6.0) of this package.Take me there.

brpop: Brazilian population estimates

brpop is an R package that provides yearly (2000 to 2021) Brazilian population estimates from DataSUS/Brazilian Health Ministry, aggregated by state, municipality, sex, and age groups. Those estimates are especially useful for calculating age and sex standardized disease rates.

The population estimates were downloaded manually from DataSUS and converted to tibbles for more convenient use.

Installation

Stable release at CRAN.

install.packages("brpop")
library(brpop)

Development version at GitHub.

remotes::install_github("rfsaldanha/brpop")
library(brpop)

Usage

The package provides population estimates for municipalities, UF and health regions by sex and age groups.

The base dataset are population estimates by municipalities and sex.

head(mun_female_pop)
head(mun_male_pop)

The package provides several functions to aggregate those datasets into multiple ways. The functions are provided for municipalities with the prefix mun_, UFs with the prefix uf_, and health regions with the prefix regsaude_. Those function takes no arguments.

Estimates by year, sex and age group

The functions *_sex_pop binds the estimates by sex into a single tibble with a new variable called sex.

mun_sex_pop()
uf_sex_pop()
regsaude_sex_pop()

Estimates by year and age group

The functions *_pop aggregates the municipalities' estimates by sex, resulting in a tibble with overall population estimates.

mun_pop()
uf_pop()
regsaude_pop()

Estimates by year

The functions *_pop_totals provides the total population estimative.

mun_pop_totals()
uf_pop_totals()
regsaude_pop_totals()

Copy Link

Version

Install

install.packages('brpop')

Monthly Downloads

311

Version

0.3.0

License

MIT + file LICENSE

Maintainer

Raphael Saldanha

Last Published

October 24th, 2023

Functions in brpop (0.3.0)

regsaude_pop_totals

Health region yearly population estimates totals
uf_male_pop

UF yearly male population estimates per age group
uf_sex_pop

UF yearly population estimates per age group and sex
uf_pop_totals

UF yearly population estimates totals
uf_female_pop

UF yearly female population estimates per age group
regsaude_sex_pop

Health regions yearly population estimates per age group and sex
uf_pop

UF yearly population estimates per age group
uf_male_pop_totals

UF yearly male population estimates totals
mun_sex_pop

Municipality yearly population estimates per age group and sex
mun_male_pop

Municipality yearly male population estimates per age group
mun_male_pop_totals

Municipality yearly male population estimates totals
mun_pop_totals

Municipality yearly population estimates totals
mun_pop

Municipality yearly population estimates per age group
mun_female_pop_totals

Municipality yearly female population estimates totals
regsaude_pop

Health region yearly population estimates per age group
regsaude_female_pop

Health region yearly female population estimates per age group
regsaude_female_pop_totals

Health region yearly female population estimates totals
uf_female_pop_totals

UF yearly female population estimates totals
regsaude_male_pop

Health region yearly male population estimates per age group
regsaude_male_pop_totals

Health region yearly male population estimates totals
%>%

Pipe operator
mun_female_pop

Municipality yearly female population estimates per age group
mun_reg_saude_449

Municipality and health region (449) code table
mun_reg_saude

Municipality and health region code table