// Task 1 routine setup capture log close set more off estimates clear log using cda08b-ex8.log, replace text version 9.2 set scheme s2mono // pgm: cda08b-ex8.do // task: 8 - Count Outcomes - Excercise // project: CDA Lab Guide // author: your name // date: today's date use science3, clear // Task 2: examine and clean the variables to be analyzed. // Task 3: Use poisson and nbreg to regress pub3 on faculty, mcit3, and pub1. // Compute the standardized and unstandardized coefficients. // Task 3a: estimate a PRM and list the coefficients. // Task 3b: estimate a NBRM and list the coefficients. // Task 3c: for the NBRM, interpret the standardized factor change coefficient // for pub1 and the unstandardized coefficients for pub1 and faculty. /* Type your answer here */ // Task 3d: test the NBRM against the alternative of the PRM. /* Type your answer here */ // Task 4: Use prcounts to create predicted probabilities and plot them. // Task 4a: estimate the PRM of pub3 on fauclty, mcit3, and pub1. // Task 4b: computed predictions with prcounts. // Task 4c: estimate the NBRM. // Task 4d: computed predictions with prcounts. // Task 4e: plot predicted probabilities // Task 4f: decide which model you would prefer. /* Type your answer here */ // Task 5: Estimate the same model using zip and zinb. // Step 5.1: zip model // Step 5.2: zip model // Step 5.3: which model do you prefer? /* Type your answer here */ log close exit