{"id":15293002,"url":"https://github.com/cdcgov/surveytable","last_synced_at":"2025-04-13T12:20:36.688Z","repository":{"id":204969288,"uuid":"712909605","full_name":"CDCgov/surveytable","owner":"CDCgov","description":"surveytable: Formatted Survey Estimates","archived":false,"fork":false,"pushed_at":"2025-03-13T11:36:12.000Z","size":29561,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T03:22:30.376Z","etag":null,"topics":["estimates","formatted-output","pretty-print","r","survey","tables"],"latest_commit_sha":null,"homepage":"https://cdcgov.github.io/surveytable/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CDCgov.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-01T13:06:24.000Z","updated_at":"2025-03-13T11:36:14.000Z","dependencies_parsed_at":"2024-01-17T19:23:36.080Z","dependency_job_id":"ce7b2353-fe3c-4e3c-b580-98d0bc9b89e2","html_url":"https://github.com/CDCgov/surveytable","commit_stats":null,"previous_names":["cdcgov/surveytable"],"tags_count":3,"template":false,"template_full_name":"CDCgov/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDCgov%2Fsurveytable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDCgov%2Fsurveytable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDCgov%2Fsurveytable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDCgov%2Fsurveytable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CDCgov","download_url":"https://codeload.github.com/CDCgov/surveytable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248711076,"owners_count":21149290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["estimates","formatted-output","pretty-print","r","survey","tables"],"created_at":"2024-09-30T16:37:13.761Z","updated_at":"2025-04-13T12:20:36.664Z","avatar_url":"https://github.com/CDCgov.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# Survey table: formatted survey estimates\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\n`surveytable` is an R package for conveniently tabulating estimates from **complex surveys**.\n\n* If you deal with survey objects in R (created with `survey::svydesign()`), then this package is for you.\n* Works with **complex surveys** (data systems that involve survey design variables, like weights and strata).\n* Works with **unweighted** data as well.\n\n* The `surveytable` package provides short and understandable commands that generate tabulated, formatted, and rounded survey estimates. \n* With `surveytable`, you can\n  * tabulate estimated counts and percentages, with their standard errors and confidence intervals,\n  * estimate the total population, \n  * tabulate survey subsets and variable interactions, \n  * tabulate numeric variables, \n  * perform hypothesis tests, \n  * tabulate rates, \n  * modify survey variables, and \n  * save the output. \n\n* Optionally, all of the tabulation functions can identify low-precision estimates using the National Center for Health Statistics (NCHS) algorithms (or other algorithms). \n* If the `surveytable` code is called from an R Markdown notebook or a Quarto document, it automatically generates HTML or PDF tables, as appropriate. \n* The package reduces the number of commands that users need to execute, which is especially helpful for users new to R or to programming.\n\n\n## Installation\n\nInstall from CRAN:\n\n``` r\ninstall.packages(\"surveytable\")\n```\nor get the development version from GitHub:\n\n``` r\ninstall.packages(c(\"remotes\", \"git2r\"))\nremotes::install_github(\"CDCgov/surveytable\", upgrade = \"never\")\n```\n\n## Documentation\n\nFind the documentation for `surveytable` here: https://cdcgov.github.io/surveytable/\n\n## Example\n\nHere is a basic example, to get you started. \n\n1. Load the package:\n\n```{r, message=FALSE}\nlibrary(surveytable)\n```\n\n2. Specify the survey that you wish you analyze. `surveytable` comes with a survey called `namcs2019sv`, for use in examples. \n\n```{r, results='asis'}\nset_survey(namcs2019sv)\n```\n\n3. Specify the variable to analyze. In NAMCS, `AGER` is the age category variable:\n\n```{r, results='asis'}\ntab(\"AGER\")\n```\n\nThe table shows:\n\n* Descriptive variable name\n* Survey name\n* For each level of the variable:\n  * Number of observations\n  * Estimated count with its SE and 95% CI\n  * Estimated percentage with its SE and 95% CI\n* Sample size\n* Optionally, the table can show whether any low-precision estimates were found\n\n\u003c!-- CDC standard text --\u003e\n## Public Domain Standard Notice\nThis repository constitutes a work of the United States Government and is not\nsubject to domestic copyright protection under 17 USC § 105. This repository is in\nthe public domain within the United States, and copyright and related rights in\nthe work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).\nAll contributions to this repository will be released under the CC0 dedication. By\nsubmitting a pull request you are agreeing to comply with this waiver of\ncopyright interest.\n\n## License Standard Notice\nThe repository utilizes code licensed under the terms of the Apache Software\nLicense and therefore is licensed under ASL v2 or later.\n\nThis source code in this repository is free: you can redistribute it and/or modify it under\nthe terms of the Apache Software License version 2, or (at your option) any\nlater version.\n\nThis source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE. See the Apache Software License for more details.\n\nYou should have received a copy of the Apache Software License along with this\nprogram. If not, see https://www.apache.org/licenses/LICENSE-2.0.html\n\nThe source code forked from other open source projects will inherit its license.\n\n## Privacy Standard Notice\nThis repository contains only non-sensitive, publicly available data and\ninformation. All material and community participation is covered by the\n[Disclaimer](https://github.com/CDCgov/template/blob/master/DISCLAIMER.md)\nand [Code of Conduct](https://github.com/CDCgov/template/blob/master/code-of-conduct.md).\nFor more information about CDC's privacy policy, please visit [https://www.cdc.gov/other/privacy.html](https://www.cdc.gov/other/privacy.html).\n\n## Contributing Standard Notice\nAnyone is encouraged to contribute to the repository by [forking](https://docs.github.com/articles/fork-a-repo)\nand submitting a pull request. (If you are new to GitHub, you might start with a\n[basic tutorial](https://docs.github.com/articles/set-up-git).) By contributing\nto this project, you grant a world-wide, royalty-free, perpetual, irrevocable,\nnon-exclusive, transferable license to all users under the terms of the\n[Apache Software License v2](https://www.apache.org/licenses/LICENSE-2.0.html) or\nlater.\n\nAll comments, messages, pull requests, and other submissions received through\nCDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at [https://www.cdc.gov/other/privacy.html](https://www.cdc.gov/other/privacy.html).\n\n## Records Management Standard Notice\nThis repository is not a source of government records, but is a copy to increase\ncollaboration and collaborative potential. All government records will be\npublished through the [CDC web site](https://www.cdc.gov).\n\n## Additional Standard Notices\nPlease refer to [CDC's Template Repository](https://github.com/CDCgov/template)\nfor more information about [contributing to this repository](https://github.com/CDCgov/template/blob/master/CONTRIBUTING.md),\n[public domain notices and disclaimers](https://github.com/CDCgov/template/blob/master/DISCLAIMER.md),\nand [code of conduct](https://github.com/CDCgov/template/blob/master/code-of-conduct.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdcgov%2Fsurveytable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdcgov%2Fsurveytable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdcgov%2Fsurveytable/lists"}