% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{rj_mortality}
\alias{rj_mortality}
\title{Rio de Janeiro Infant Mortality (2016)}
\format{
A data.frame in long format with columns:
\describe{
  \item{region_id}{Integer identifier of the municipality.}
  \item{ibge_code}{6-digit IBGE municipality code.}
  \item{name}{Municipality name.}
  \item{population}{IBGE municipal population estimate for 2016.}
  \item{live_births}{Number of live births in 2016 (SINASC). Used as the
    population denominator in Section 5.2 of Cancado et al. (2025).}
  \item{x}{Longitude of the municipality centroid.}
  \item{y}{Latitude of the municipality centroid.}
  \item{node_id}{Character ICD-10 leaf code (4 characters), matching a
    leaf of \code{\link{rj_tree}}.}
  \item{cases}{Integer count of infant deaths.}
}
}
\source{
Population: IBGE municipal estimates. Live births: DATASUS/SINASC via
TabNet. Deaths: DATASUS/SIM microdata via OpenDATASUS
(\url{https://opendatasus.saude.gov.br}). Centroids: \code{geobr}.
}
\usage{
rj_mortality
}
\description{
Combined long-format dataset of infant mortality in the 92 municipalities
of Rio de Janeiro state, Brazil, 2016. Each row represents a (municipality,
ICD-10 leaf) combination with at least one death; missing combinations
are implicitly zero. Use together with \code{\link{rj_tree}}.
}
\details{
To reproduce Section 5.2 of Cancado et al. (2025), use \code{live_births}
as the population denominator:
\preformatted{
  data <- rj_mortality
  data$population <- data$live_births
  treespatial_scan(data, rj_tree, ...)
}

Municipality polygons can be obtained via \code{geobr::read_municipality()}.
}
\examples{
data(rj_mortality)
head(rj_mortality)
cat("Total deaths:", sum(rj_mortality$cases), "\n")
}
\references{
Cancado, A.L.F., Oliveira, G.S., Quadros, A.V.C., Duczmal, L. (2025).
A tree-spatial scan statistic. \emph{Environmental and Ecological
Statistics}, 32, 953--978. \doi{10.1007/s10651-025-00670-w}
}
\seealso{
\code{\link{rj_tree}}
}
\keyword{datasets}
