Package: surveytable 0.9.10.9000

Alex Strashny

surveytable: Streamlining Complex Survey Estimation and Reliability Assessment in R

Short and understandable commands that generate tabulated, formatted, and rounded survey estimates. Mostly a wrapper for the 'survey' package (Lumley (2004) <doi:10.18637/jss.v009.i08> <https://CRAN.R-project.org/package=survey>) that identifies low-precision estimates using the National Center for Health Statistics (NCHS) presentation standards (Parker et al. (2017) <https://www.cdc.gov/nchs/data/series/sr_02/sr02_175.pdf>, Parker et al. (2023) <doi:10.15620/cdc:124368>).

Authors:Alex Strashny [aut, cre]

surveytable_0.9.10.9000.tar.gz
surveytable_0.9.10.9000.zip(r-4.7)surveytable_0.9.10.9000.zip(r-4.6)surveytable_0.9.10.9000.zip(r-4.5)
surveytable_0.9.10.9000.tgz(r-4.6-any)surveytable_0.9.10.9000.tgz(r-4.5-any)
surveytable_0.9.10.9000.tar.gz(r-4.7-any)surveytable_0.9.10.9000.tar.gz(r-4.6-any)
surveytable_0.9.10.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
surveytable/json (API)

# Install 'surveytable' in R:
install.packages('surveytable', repos = c('https://cdcgov.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cdcgov/surveytable/issues

Pkgdown/docs site:https://cdcgov.github.io

Datasets:
  • namcs2019sv - Selected variables from the National Ambulatory Medical Care Survey
  • namcs2019sv_df - Selected variables from the National Ambulatory Medical Care Survey
  • nhis2024a - National Health Interview Survey
  • rccsu2018 - National Study of Long-Term Care Providers
  • uspop_example - US Population for use in examples

On CRAN:

Conda:

estimatesformatted-outputpretty-printsurveytables

7.22 score 7 stars 35 scripts 299 downloads 24 exports 33 dependencies

Last updated from:ea5d660381. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK209
source / vignettesOK309
linux-release-x86_64OK236
macos-release-arm64OK133
macos-oldrel-arm64OK123
windows-develOK138
windows-releaseOK109
windows-oldrelOK111
wasm-releaseOK184

Exports:codebookrestructureset_optsset_surveyshow_optionsshow_optssurvey_subsetsvyciprop_adjustedtabtab_crosstab_ratetab_subsettab_subset_ratetotaltotal_ratevar_allvar_anyvar_casevar_collapsevar_copyvar_crossvar_cutvar_listvar_not

Dependencies:assertthatbase64enccachemclicommonmarkDBIdigestfansifastmapgenericsgluehtmltoolshuxtablelatticelifecyclemagrittrMatrixmemoiseminqamitoolsnumDerivR6RcppRcppArmadillorlangstringistringrsurveysurvivaltidyselectvctrswithrxml2

Age-adjusted estimates
Crude estimates | Counts or proportions

Last update: 2026-06-30
Started: 2026-06-30

Introduction to surveytable
Preliminaries | Concepts | NAMCS | More concepts | Create a survey object | Begin analysis | List variables | Tabulate categorical and logical variables | Entire population | Subsets or interactions | Tabulate numeric variables | Perform statistical hypothesis testing | Categorical variables | Numeric variables | Categorical variables (single variable) | Calculate rates | Create or modify variables | Save the output | Cite this package

Last update: 2026-06-30
Started: 2023-10-25

Printing
Basic printing | Create HTML or PDF tables | Print using various table-making packages | huxtable | gt | kableExtra | auto | Other packages | Generate unformatted output | Save the tables | Save tables and charts to an Excel workbook | Save to a CSV file | Save to a Word document | Save to an R data file | Advanced printing | The proper approach | The "quick-and-dirty" approach

Last update: 2026-06-23
Started: 2025-11-20

Tips and tricks
Conditional independence test | Reset the options | Verify the results | Subset a survey | Advanced variable editing and data flow | Advanced variable editing | Data flow

Last update: 2026-06-23
Started: 2025-06-04

Example: National Ambulatory Medical Care Survey (NAMCS) tables
Begin | Table 1 | Counts and percentages | Rates | Table 3 | Table 5 | Table 6 | Table 11 | More advanced coding

Last update: 2026-05-05
Started: 2023-11-01

Printing (PDF)
Basic printing | Create HTML or PDF tables | Print using various table-making packages | kableExtra | auto | More

Last update: 2025-11-20
Started: 2024-11-05

Use cases
Unweighted data | Complex survey | Spark-based complex survey | Complex survey with replicate weights

Last update: 2025-08-25
Started: 2025-05-14

Example: Residential Care Community Services User (NSLTCP RCC SU) report
Begin | Figure 1 | Figure 2 | Figure 4 | Advanced variable editing | Figure 3

Last update: 2024-10-10
Started: 2024-07-18