The following object is masked from 'package:graphics':
dotchart
ddi <-read_ipums_ddi("C:/Users/rayo-garza/OneDrive - Center for Public Policy Priorities/Documents/R2024/usa_00079.xml")dat <-read_ipums_micro(ddi)
Use of data from IPUMS USA is subject to conditions including that users should cite the data appropriately. Use command `ipums_conditions()` for more details.
dat <-zap_labels(dat)# str(dat)
Total Mothers Ages 13-17
library(dplyr)under_18_mom <- dat |>filter(NCHILD >0) |>summarise(total =sum(PERWT) )print(under_18_mom)
# A tibble: 1 × 1
total
<dbl>
1 3000
Approximately 3,000 mothers ages 13-17 in Texas according to latest ACS estimates. These estimates are based on weighted person-level data identifying females living in households with their own children, therefore, there is high liklihood that this estimate is an under count. This figure aligns closely with CDC’s 2023 provisional natality data, which reports 3,158 births in Texas to mothers in the same age range, confirming that the ACS-based population estimate is well within expected bounds. Note that CDC estimates were limited to age bracket 15-19. See screenshot from CDC WONDER below:
# by age groupmothers_by_age <- dat |>filter(NCHILD >0) |>group_by(AGE) |>summarise(weighted_total =sum(PERWT),unweighted_n =n() ) |>arrange(AGE)print(mothers_by_age)