Previous: seats.with.prob: Determine the fraction Up: Step 2: Conduct Analyses Next: bias.resp, or svsum: Determine

results.prob: Given a vote share or deviation, determine the probability that the seat share is within a particular margin

Example: results.prob(j.ob) does the default: For the vote as it is, what is the probability that the seat share will be between the default range of 0.45 to 0.55?

Example:

results.prob(j.ob,shift.in.votes=-0.05)
determines what the probability is that the seat share will be between the default range of 0.45 to 0.55, given that the resulting vote share was 5 points lower than actually experienced.

Example:

results.prob(j.ob,vote.range=c(0,0.5),mean.votes=0.5)

determines what the probability is that the seat share for Party 1 will be below 50 percent, given that the resulting vote share was 50 percent for each party.



Gary King 2010-08-31