psrc_pums_stat: Generic call for PUMS summary statistics

View source: R/psrc-pums-stat.R

psrc_pums_statR Documentation

Generic call for PUMS summary statistics

Description

Given specific form by related pums_stat functions.

Usage

psrc_pums_stat(so, stat_type, stat_var, group_vars, incl_na = TRUE, rr = FALSE)

Arguments

so

The srvyr object returned by get_psrc_pums

stat_type

Desired survey statistic

stat_var

The numeric variable to summarize

group_vars

Factor variable/s for grouping, as an UPPERCASE string element or list

incl_na

option to remove NA from group_vars (if FALSE, the total may not reflect the full dataset)

rr

optional relative reliability column, i.e. coefficient of variation as category levels (breakpoints: .15/.3./.5 -> good/fair/weak/unreliable)

Value

A summary tibble, including variable names, summary statistic and margin of error

Author(s)

Michael Jensen


psrc/psrccensus documentation built on June 1, 2025, 1:06 p.m.