worldcup94 - phihat='Predicted probablity'...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
* 1994 World cup soccer data I pulled of network (held in US) * * These are frequencies of number of goals in the 36 games of * the first round; * options ls=80 nocenter; o data soccer; input goals count expected phihat; if expected>0 then chisq = (count-expected)*(count-expected)/sqrt(expected); if count>0 and expected>0 then gsq = 2*count*log(count/expected); label goals ='Number of goals scored'
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: phihat='Predicted probablity' expected='Expected freq under Poisson'; cards; 0 20 22.323 .319 1 29 25.512 .364 2 16 14.578 .208 3 3 5.554 .079 4 1 1.587 .022 5 0 .363 .005 6 1 .090 .001 7 0 .000 .000 ; proc means sum; var count expected phihat chisq gsq; proc print; var goals count expected phihat chisq gsq;...
View Full Document

This note was uploaded on 06/11/2010 for the course EPSY 589 taught by Professor Carolynanderson during the Spring '09 term at University of Illinois at Urbana–Champaign.

Ask a homework question - tutors are online