compare_yearly: Compare two datasets at the per-year stratum level.

View source: R/compare.R

compare_yearlyR Documentation

Compare two datasets at the per-year stratum level.

Description

Matches on concept_id x year x sex x age_group (inner join). Only keeps strata where both datasets have prevalence > 0.

Usage

compare_yearly(d1, d2, prev_table = "condition_prevalence")

Arguments

d1

Named list from load_dataset (reference).

d2

Named list from load_dataset (comparison).

prev_table

Name of the prevalence table to compare.

Value

tibble with one row per matched stratum, full PR column set.


syrona documentation built on Sept. 5, 2026, 1:06 a.m.