Gary King Homepage Previous: Purpose: Up: EIGRAPH Next: Options:

Example:

This example assumes you have run ei and saved a data buffer (called racevote.fmt in the example below). eigraph can be run interactively or via a batch file. Here is a typical set of commands that you might run interatively on a DOS-based machine. (The calls to graphclr; prevent one graphic image being overlaid on top of the next.) Gauss for Unix requires you to open graphics windows explicitly; see the reference item GRAPH on page [*] below.)
new;
library ei;              @ initialize ei @
loadm dbuf = racevote;   @ load in data buffer @
graphon;                 @ open graphics window @
eigraph(dbuf,"xgraph");  @ check info from bounds @
graphclr;                @ clear graphics screen @
eigraph(dbuf,"fit");     @ evaluate model fit @
graphclr;                @ clear graphics screen @
eigraph(dbuf,"tomog");   @ tomography plot @
graphclr;                @ clear graphics screen @
eigraph(dbuf,"post");    @ draw district-level posterior @
graphoff;                @ close graphics window @



Gary King 2006-09-13