Age adjustment is useful when
comparing estimates across groups whose age distributions differ. In
surveytable, age adjustment is turned on when the survey is
specified with set_survey(). The tabulation commands are
otherwise the same commands used for crude estimates.
This example uses selected variables from the National Health
Interview Survey (NHIS) 2024 Public Use File. The standard population is
represented by uspop_example$age_group_std.
First, calculate ordinary crude estimates. These estimates reflect the age distribution in the survey population.
| Survey info {NHIS 2024 PUF (Adults)} | ||
| Variables | Observations | Design |
|---|---|---|
set_opts(mode = "nchs", adj = "nhis")
#> * Mode: NCHS.
#> * Korn and Graubard confidence intervals for proportions with an adjustment that might be required by NHIS.
tab("dis3_indicator")| Disability indicator (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32576. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability: a lot of difficulty (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32576. Checked NCHS presentation standards. Nothing to report. | |||||||||
The same setup works for subgroups. For example, estimate each outcome by sex:
| Disability indicator (Sex of Sample Adult = Male) (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 14962. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability indicator (Sex of Sample Adult = Female) (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 17609. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability: a lot of difficulty (sex_a = Male) (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 14962. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability: a lot of difficulty (sex_a = Female) (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 17609. Checked NCHS presentation standards. Nothing to report. | |||||||||
The age distribution itself can also be tabulated:
| Age group (knowns only) {NHIS 2024 PUF (Adults)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32577. Checked NCHS presentation standards. Nothing to report. | |||||||||
To produce age-adjusted estimates, call set_survey()
with two additional arguments:
aa_vr: the age-group variable in the survey.aa_pop: a data frame with Level and
Population columns describing the standard population.The Level values in aa_pop must exactly
match the levels of aa_vr.
uspop_example$age_group_std
#> Level Population
#> 1 18-44 108151050
#> 2 45-54 37030152
#> 3 55-64 23961506
#> 4 65-74 18135514
#> 5 75+ 16573966| Survey info {NHIS 2024 PUF (Adults)} | |||
| Variables | Observations | Age adjustment | Design |
|---|---|---|---|
Now use the same tabulation commands. The table titles indicate that the estimates are age-adjusted.
| Disability indicator (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32576. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability: a lot of difficulty (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32576. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability indicator (Sex of Sample Adult = Male) (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 14962. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability indicator (Sex of Sample Adult = Female) (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 17609. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability: a lot of difficulty (sex_a = Male) (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 14962. Checked NCHS presentation standards. Nothing to report. | |||||||||
| Disability: a lot of difficulty (sex_a = Female) (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 17609. Checked NCHS presentation standards. Nothing to report. | |||||||||
As a diagnostic, tabulating the age-adjustment variable should reproduce the standard age distribution. The percentage standard errors are expected to be zero, because the age distribution has been fixed to the standard population.
| Age group (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32577. Checked NCHS presentation standards. Nothing to report. | |||||||||
The Population column in aa_pop can contain
population counts or proportions. Values are normalized internally, so
counts and proportions that describe the same standard population
produce the same age-adjusted estimates.
uspop_example$age_group_std_prop
#> Level Population
#> 1 18-44 0.53053662
#> 2 45-54 0.18165197
#> 3 55-64 0.11754353
#> 4 65-74 0.08896404
#> 5 75+ 0.08130384| Survey info {NHIS 2024 PUF (Adults)} | |||
| Variables | Observations | Age adjustment | Design |
|---|---|---|---|
| Disability indicator (knowns only) {NHIS 2024 PUF (Adults) (age-adjusted)} | |||||||||
| Level | n | Number (000) | SE (000) | LL (000) | UL (000) | Percent | SE | LL | UL |
|---|---|---|---|---|---|---|---|---|---|
| N = 32576. Checked NCHS presentation standards. Nothing to report. | |||||||||