The Censo Demografico (Demographic Census) is the main source of population denominators in Brazil, essential for calculating mortality rates, disease incidence, and other epidemiological indicators.
The healthbR package provides direct access to Census
population data via the IBGE SIDRA API, covering:
| Function | Description | Years |
|---|---|---|
censo_populacao() |
Population by sex, age, race, situation | 1970-2022 |
censo_estimativa() |
Intercensitary population estimates | 2001-2021 |
censo_sidra_data() |
Any Census SIDRA table | All available |
The most common use case: getting population by state as a denominator for health indicators.
For years between censuses, IBGE publishes annual population estimates that serve as denominators:
A typical epidemiological workflow combines mortality data (SIM) with Census denominators:
# step 1: get population denominator
pop_2010 <- censo_populacao(
year = 2010,
variables = "total",
territorial_level = "state"
)
# step 2: suppose you have mortality data (from SIM or other source)
# deaths_by_state <- sim_data(year = 2010) |> count(state)
# step 3: calculate crude mortality rate
# mortality_rate <- deaths_by_state |>
# left_join(pop_2010, by = "state") |>
# mutate(rate_per_100k = (n / population) * 100000)The Census module includes a catalog of SIDRA tables organized by theme:
For full flexibility, use censo_sidra_data() to query
any Census table:
# compare population across census years
pop_2010 <- censo_populacao(year = 2010, territorial_level = "brazil")
pop_2022 <- censo_populacao(year = 2022, territorial_level = "brazil")
# or use estimates for intercensitary years
pop_series <- censo_estimativa(
year = 2001:2021,
territorial_level = "brazil"
)
pop_series