## Stata Software for Assessing Survey Bias

BinaryApe / Foter / CC BYIn a recent paper, we derive various multinomial measures of bias in public opinion surveys (e.g. pre-election polls). Put differently, with our methodology, you may calculate a scalar measure of survey bias in multi-party elections. Thanks to Kit Baum over at Boston College, our Stata add-on surveybias.ado is now available…

## A Scalar Measure for Bias in (Multi-Party Pre-Election) Surveys

All surveys deviate from the true distributions of the variables, but some more so than others. This is particularly relevant in the context of election studies, where the true distribution of the vote is revealed on election night. Jocelyn Evans and I present a method for calculating a scalar measure that neatly summarises such bias for multi-party elections. We also present a Stata module that implements our new method.

## Sampling from a Multinomial Distribution in Stata

Sometimes, a man’s gotta do what a man’s gotta do. Which, in my case, might be a little simulation of a random process involving an unordered categorical variable. In R, sampling from a multinomial distribution is trivial. rmultinom(1,1000,c(.1,.7,.2,.1)) gives me a vector of random numbers from a multinomial distribution with outcomes 1, 2, 3, and…