Describing the numbers
Averages, tables, correlations and the two-group test.
What we have
- The standard summary of a number column.
- Counts how many rows fall in each category, or in each pair of categories.
- One compact table of exactly the statistics you ask for.
- Shows how strongly each pair of columns moves together.
- The same correlation grid, but each pair uses every row it can.
- Asks whether two groups really differ on average, or whether a mean differs from a number.
- The average, together with how precise that average is.
- The sum, together with how precise that sum is.
- The share of rows in each category, with a margin of error.
Coming later
tab1andtab2, for several tables in one command- a group with fewer than
set mincellobservations loses its whole row - a survey design — weights alone give the right mean and the wrong standard error; use svy: mean
- a survey design; use svy: proportion
- a survey design; use svy: total
- paired t-tests
- the chi-squared statistic is not printed while
set mincellis on, because it can be worked backwards to the hidden counts - the percentiles are printed by
detailbut not left inr()— there is nor(p50) - while
set mincellis on, Min and Max are always hidden
summarizeThe standard summary of a number column.
tabulateCounts how many rows fall in each category, or in each pair of categories.
tabstatOne compact table of exactly the statistics you ask for.
correlateShows how strongly each pair of columns moves together.
pwcorrThe same correlation grid, but each pair uses every row it can.
ttestAsks whether two groups really differ on average, or whether a mean differs from a number.
meanThe average, together with how precise that average is.
totalThe sum, together with how precise that sum is.
proportionThe share of rows in each category, with a margin of error.