Tools › Statistics › Surveys and Sampling › Banner Tables › Method

Banner Tables: Method

Open the free Banner Tables (Survey Cross-Tabs)

Banner Tables: Every Question Against Every Group, With Letters for the Differences

The tool takes survey respondents, one row each, and prints one table per question: the answers down the side (the stub), and across the top (the banner) a Total column and one lettered column for each category of the banner variables, such as age groups and regions. Under each figure it prints the letters of the columns that are lower under a stated statistical test.

The idea: one table, many comparisons, letters to read them

A survey report usually asks the same thing of every question: how do the young answer against the old, the north against the south, one party against another? A banner table answers all of that at once. Every column is a group of respondents, every figure is the percentage of that group giving the answer, and the base row says how many respondents the percentage rests on.

Pasted respondent rows with the columns age, region and rating on the left; on the right the banner table of rating, with a Total column and the lettered columns A 18-34, B 35-54 and C 55+, a base row and the rows Good and Poor in percent. The letter A under 45 percent in column B means that the 35-54 column is higher than column A, 28 percent, at the confidence level chosen.
Figure 1: From pasted rows to a banner table. A letter under a figure names a column that is lower.

Two percentages from two groups of respondents always differ a little by the luck of who was sampled. The letters separate gaps that are larger than sampling variation usually produces from gaps that are not. Each banner column carries a letter (A, B, C and so on). For every answer, every pair of columns of the same banner variable is tested; when the pair differs at the confidence level chosen, the letter of the column with the lower figure is printed under the higher figure. The IBM SPSS Custom Tables documentation states the convention in these words: "the key of the smaller category is placed under the category with the larger proportion", and the UNICOM Intelligence Reporter guide describes the same placement. A figure with "BC" under it is higher than columns B and C; a figure with nothing under it is not marked as higher than any column.

The equations

QuantityFormulaNote
Column basew = Σ weights of the column's respondents who answeredwithout weights, the number of respondents n
Column percent of an answerp = x ÷ wx is the (weighted) count of the answer in the column
Effective base (Kish)m = (Σw)² ÷ Σw²equals n when all weights are equal; smaller when they vary
Pooled share of two columnspc = (x1 + x2) ÷ (w1 + w2)the share if the two columns were one group
Column proportions testz = (p1 − p2) ÷ √(pc (1 − pc) (1 ÷ m1 + 1 ÷ m2))two-sided p-value from the normal distribution
Mean of a numeric stubȳ = Σw y ÷ Σw, s² = Σw (y − ȳ)² ÷ Σw × m ÷ (m − 1)with equal weights s² is the usual sample variance
Welch t test on two meanst = (ȳ1 − ȳ2) ÷ √(s1² ÷ m1 + s2² ÷ m2)degrees of freedom (s1² ÷ m1 + s2² ÷ m2)² ÷ (s1⁴ ÷ (m1² (m1 − 1)) + s2⁴ ÷ (m2² (m2 − 1)))
Bonferroni correctionlevel of each test = (1 − confidence) ÷ gg = number of column pairs tested within the banner variable: k (k − 1) ÷ 2 for k tested columns
Marks expected by chancesum of the levels of all tests run66 tests at 0.05 give 3.3

The test. The z statistic is the two-proportion test of the NIST/SEMATECH e-Handbook, section 7.3.3: the gap between the two percentages over its standard error, with the variance estimated from the pooled share. Without weights the square of z equals the Pearson chi-square (no continuity correction) of the two-by-two table of the two columns by "gave the answer or not". A pair is marked when the two-sided p-value is below 1 minus the confidence level: 0.05 at 95 %.

Weights and the effective base. With a weight column the percentages are weighted, and unequal weights make them less precise than the number of respondents suggests. The page follows the practice of tabulation programs and puts Kish's effective base in place of the number of respondents in the test; the UNICOM Intelligence guide writes the same statistic with e = w² ÷ q, q being the sum of squared weights. The CDC's BRFSS weighting description forms an effective sample size from the variation of the weights in the same way. Each table prints three base rows so that the reader sees all of them: respondents, weighted base, effective base. Weights can come from the Survey Weighting (Raking) tool, whose list of weights pastes in as a column.

Where programs differ. IBM SPSS Custom Tables compares column proportions with z tests, and its documented example adjusts the p-values for the number of column pairs with Bonferroni's method. The UNICOM Intelligence guide compares the same statistic with Student's t distribution on m1 + m2 − 2 degrees of freedom and offers a continuity correction. This page uses the normal distribution, no continuity correction, and Bonferroni only when you switch it on, and says so in its results. At bases of 30 or more the normal and the t distribution give nearly the same p-value; a pair close to the level can be marked by one program and not by another.

Two levels. With a second, lower level switched on, an uppercase letter marks a pair at the confidence level and a lowercase letter a pair that reaches only the lower level (for example uppercase at 95 %, lowercase at 90 %), the practice the UNICOM Intelligence guide describes for tests at two levels.

Means. A stub named as numeric is summarized by its mean in every column. The means of two columns are compared with the unequal-variance t test of the NIST/SEMATECH e-Handbook, section 7.3.1 (Welch, 1947), with the Welch-Satterthwaite degrees of freedom. With weights the page uses the weighted mean, the variance written above and the effective base; that weighted variance is this page's stated convention, and programs differ here.

Bases. The base of a column in a table is the number of its respondents who answered that question, so bases change from table to table when answers are blank. A column whose base is under the minimum base (30 unless you change it) is printed with ** and takes part in no test; a base under the small-base mark is printed with * and is still tested. Both figures are entered settings.

The number of tests

A banner with six columns in two banner variables gives 6 pairs per answer; twenty answers give 120 tests. Each test at the 95 % level has a 5 % chance of marking a pair of groups that do not differ in the population, so about 6 of those 120 tests would print a letter by chance alone. The page counts the tests it ran and prints that expected number beside the number of marks, so that the reader can set one against the other. The Bonferroni option divides the level of each test by the number of column pairs tested within the banner variable (NIST/SEMATECH e-Handbook, section 7.4.7.3, gives the inequality behind it): the chance of any false letter within one row of a table then stays at or under the level, and each single difference has to be larger to be marked. With the option on, the page also states how many pairs would have been marked without it.

What it assumes

  • Each row is one respondent, answering independently of the others, and the respondents are a random sample of the groups they stand for (after weighting, if weights are used).
  • Each respondent belongs to one category of a banner variable. Banners built from multiple-response questions, where one person sits in two columns, need an overlap correction that this page does not have.
  • Bases are large enough for the normal approximation to the binomial distribution; the NIST/SEMATECH e-Handbook gives the z test for samples that are "reasonably large" and an exact test for small ones, which this page does not run.
  • Weights are treated as fixed numbers. Clustering, stratification and the estimation of the weights from the same sample are ignored; design-based survey software handles those.

When it misleads

  • Many tests, few respondents. A page of letters from hundreds of tests always contains some produced by chance. A lone letter in a long table is weak evidence; the same pattern across related questions is stronger.
  • Small bases. Under about 30 respondents a percentage moves several points with one answer, and the test's approximation is poor. The page leaves such columns untested instead of printing unstable letters.
  • Shares near 0 % or 100 %. The pooled variance becomes tiny and the z statistic erratic; a pair where no one or everyone in both columns gave the answer is not tested at all.
  • Letters are not sizes. With thousands of respondents a gap of two points earns a letter; with sixty, a gap of fifteen may not. Read the percentages, then the letters.
  • Letters are not causes. Older respondents may rate a service higher because of who they are, which plan they hold, or when they joined. A banner table shows that groups differ, never why.
  • The Total column. Each banner column is part of the Total, so the two are not independent groups; the page does not test against the Total.

Common mistakes

  • Reading the letter backwards. The letter sits under the higher figure and names the lower column. "A" under the figure of column C means C is higher than A.
  • Comparing across banner variables. Letters compare age groups with age groups and regions with regions. The column for the north is never tested against the column for the under-35s: the same people can be in both.
  • Using the weighted base as the sample size. A weighted base of 5,000 built from 300 respondents does not carry the precision of 5,000 interviews. The test uses the effective base, which is never larger than the number of respondents.
  • Percentaging the wrong way. Banner tables show column percentages: of the under-35s, the share who answered yes. The share of yes-sayers who are under 35 is a different number and needs the table turned around.
  • Forgetting the blanks. When blank answers are left out, percentages are of those who answered; a question skipped by half the sample has half the base. Check the base row before quoting a figure.
  • Counting letters as findings. Compare the number of letters with the number chance alone would give, printed under the tables.

Related tools

Banner Tables adds the many-columns layout with letters to these tools: Survey Analysis studies one two-way table in depth (chi-square, margins of error); Survey Weighting (Raking) makes the weight column this page reads; Hypothesis Tests runs a single two-proportion or two-mean test with every step; Jury Pool Representation compares the make-up of a jury pool with the population it is drawn from.

Letters mark statistical differences under the stated test; they are not findings about causes. Paste de-identified rows only.

Open the free Banner Tables (Survey Cross-Tabs)