diff --git a/R/var_list.R b/R/var_list.R index 9fe4a18..3c54aba 100644 --- a/R/var_list.R +++ b/R/var_list.R @@ -31,7 +31,7 @@ var_list = function(sw = "", all=FALSE Variable = ii , Class = paste(class(design$variables[,ii]) , collapse = ", ") - , Label = .getvarname(design, ii) + , `Long name` = .getvarname(design, ii) ) ret %<>% rbind(r1) } diff --git a/README.Rmd b/README.Rmd index 7352a92..0bbf679 100644 --- a/README.Rmd +++ b/README.Rmd @@ -18,11 +18,7 @@ knitr::opts_chunk$set( -In R, the standard way of analyzing complex surveys is using the `survey` package. The major purpose of the `surveytable` package is to ease the use of the `survey` package in certain applications. `surveytable` improves the output of `survey` functions (by formatting and tabulating it); performs hypothesis tests; reduces the number of commands that users need to execute; and applies presentation standards to estimates, which is the usual practice at the National Center for Health Statistics (NCHS). - -The `surveytable` package allows users to use simple commands and produces formatted tabulated output. One useful function, which operates on categorical and logical variables, tabulates estimated counts and percentages with their standard errors and confidence intervals. It applies presentation standards for counts and percentages, and flags estimates if they should be suppressed, footnoted, or reviewed. Other functions list the variables in a survey, estimate the total population, tabulate survey subsets and variable interactions, tabulate numeric variables, calculate rates, perform t-tests, and save the output. - -The `surveytable` package is easier to use than using `survey` directly. With fewer commands, `surveytable` output has survey name, variable labels, formatted estimates, cleaner category values, both count and percentage estimates in a single table, and confidence intervals. The package also performs checking for presentation standards. +The `surveytable` package provides short and understandable commands that generate tabulated, formatted, and rounded survey estimates. One useful function, which operates on categorical and logical variables, tabulates estimated counts and percentages with their standard errors and confidence intervals. Other functions list the variables in a survey, estimate the total population, tabulate survey subsets and variable interactions, tabulate numeric variables, tabulate rates, create or modify survey variables, perform t-tests, and save the output. All of the tabulation functions check the NCHS presentation standards to flag low-precision estimates. If the `surveytable` code is called from an R Markdown notebook or a Quarto document, it generates HTML tables, which can be incorporated directly into documents. ## Installation diff --git a/README.md b/README.md index 88722f4..31bb14f 100644 --- a/README.md +++ b/README.md @@ -6,30 +6,18 @@ -In R, the standard way of analyzing complex surveys is using the -`survey` package. The major purpose of the `surveytable` package is to -ease the use of the `survey` package in certain applications. -`surveytable` improves the output of `survey` functions (by formatting -and tabulating it); performs hypothesis tests; reduces the number of -commands that users need to execute; and applies presentation standards -to estimates, which is the usual practice at the National Center for -Health Statistics (NCHS). - -The `surveytable` package allows users to use simple commands and -produces formatted tabulated output. One useful function, which operates -on categorical and logical variables, tabulates estimated counts and -percentages with their standard errors and confidence intervals. It -applies presentation standards for counts and percentages, and flags -estimates if they should be suppressed, footnoted, or reviewed. Other -functions list the variables in a survey, estimate the total population, -tabulate survey subsets and variable interactions, tabulate numeric -variables, calculate rates, perform t-tests, and save the output. - -The `surveytable` package is easier to use than using `survey` directly. -With fewer commands, `surveytable` output has survey name, variable -labels, formatted estimates, cleaner category values, both count and -percentage estimates in a single table, and confidence intervals. The -package also performs checking for presentation standards. +The `surveytable` package provides short and understandable commands +that generate tabulated, formatted, and rounded survey estimates. One +useful function, which operates on categorical and logical variables, +tabulates estimated counts and percentages with their standard errors +and confidence intervals. Other functions list the variables in a +survey, estimate the total population, tabulate survey subsets and +variable interactions, tabulate numeric variables, tabulate rates, +create or modify survey variables, perform t-tests, and save the output. +All of the tabulation functions check the NCHS presentation standards to +flag low-precision estimates. If the `surveytable` code is called from +an R Markdown notebook or a Quarto document, it generates HTML tables, +which can be incorporated directly into documents. ## Installation diff --git a/docs/articles/a01-Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.html b/docs/articles/a01-Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.html index eb8a3f5..d133d79 100644 --- a/docs/articles/a01-Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.html +++ b/docs/articles/a01-Example-National-Ambulatory-Medical-Care-Survey-NAMCS-tables.html @@ -868,7 +868,7 @@
surveytable
provides easy commands that generate
-tabulated and formatted survey estimates.
The surveytable
package provides short and
+understandable commands that generate tabulated, formatted, and rounded
+survey estimates.
The examples below use the National Ambulatory Medical Care Survey (NAMCS) 2019 Public Use File (PUF). NAMCS is “an annual nationally representative sample survey of visits to nonfederal office-based @@ -143,7 +144,7 @@
In R, the standard way of analyzing complex surveys is using the survey
package. The major purpose of the surveytable
package is to ease the use of the survey
package in certain applications. surveytable
improves the output of survey
functions (by formatting and tabulating it); performs hypothesis tests; reduces the number of commands that users need to execute; and applies presentation standards to estimates, which is the usual practice at the National Center for Health Statistics (NCHS).
The surveytable
package allows users to use simple commands and produces formatted tabulated output. One useful function, which operates on categorical and logical variables, tabulates estimated counts and percentages with their standard errors and confidence intervals. It applies presentation standards for counts and percentages, and flags estimates if they should be suppressed, footnoted, or reviewed. Other functions list the variables in a survey, estimate the total population, tabulate survey subsets and variable interactions, tabulate numeric variables, calculate rates, perform t-tests, and save the output.
The surveytable
package is easier to use than using survey
directly. With fewer commands, surveytable
output has survey name, variable labels, formatted estimates, cleaner category values, both count and percentage estimates in a single table, and confidence intervals. The package also performs checking for presentation standards.
The surveytable
package provides short and understandable commands that generate tabulated, formatted, and rounded survey estimates. One useful function, which operates on categorical and logical variables, tabulates estimated counts and percentages with their standard errors and confidence intervals. Other functions list the variables in a survey, estimate the total population, tabulate survey subsets and variable interactions, tabulate numeric variables, tabulate rates, create or modify survey variables, perform t-tests, and save the output. All of the tabulation functions check the NCHS presentation standards to flag low-precision estimates. If the surveytable
code is called from an R Markdown notebook or a Quarto document, it generates HTML tables, which can be incorporated directly into documents.