Description Usage Arguments Value References Examples
Based on Stata's "tabstat" command. "tabstat displays summary statistics for a series of numeric variables in one table. It allows you to specify the list of statistics to be displayed. Statistics can be calculated (conditioned on) another variable. tabstat allows substantial flexibility in terms of the statistics presented and the format of the table" (Stata, 2016).
1 |
x |
A continuous variable. |
digits |
Rounds the values returned to the specified number of decimal places (default 3). |
stats |
Return specified statistics. Options include:
|
A data frame. By default, the data frame contains the variable name and mean.
Stata 14 help for tabstat http://www.stata.com/help.cgi?tabstat
1 2 3 4 5 6 7 8 9 | data(mtcars)
# Single univariate analysis with Defaults
tabstat(mtcars$mpg)
# Single univariate analysis with all stats
tabstat(mtcars$mpg, stats = c("n", "nmiss", "ci", "sum", "max", "min",
"range", "sd", "var", "cv", "sem", "skew", "kurt", "p1", "p5", "p10",
"p25", "p50", "median", "p75", "p90", "p95", "p99", "iqr", "q"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.