Total count
See also
Other tables:
tab(),
tab_cross(),
tab_rate(),
tab_subset_rate(),
total_rate()
Examples
set_survey(namcs2019sv)
#> Survey info {NAMCS 2019 PUF}
#> ┌───────────┬──────────────┬────────────────────────────────────────────────┐
#> │ Variables │ Observations │ Design │
#> ├───────────┼──────────────┼────────────────────────────────────────────────┤
#> │ 33 │ 8,250 │ Stratified 1 - level Cluster Sampling design │
#> │ │ │ (with replacement) │
#> │ │ │ With (398) clusters. │
#> │ │ │ namcs2019sv = survey::svydesign(ids = ~CPSUM, │
#> │ │ │ strata = ~CSTRATM, weights = ~PATWT │
#> │ │ │ , data = namcs2019sv_df) │
#> └───────────┴──────────────┴────────────────────────────────────────────────┘
#>
total()
#> Total {NAMCS 2019 PUF}
#> ┌───────────────┬───────────────┬───────────────┬───────────────┬───────────────┐
#> │ n │ Number (000) │ SE (000) │ LL (000) │ UL (000) │
#> ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤
#> │ 8,250 │ 1,036,484 │ 48,836 │ 945,014 │ 1,136,809 │
#> └───────────────┴───────────────┴───────────────┴───────────────┴───────────────┘
#> N = 8250. Checked NCHS presentation standards. Nothing to report.
#>