// Task 1 routine setup capture log close set more off estimates clear log using cda07b-ex7.log, replace text version 9.2 set scheme s2mono // pgm: cda07b-ex7.do // task: 7 - Nominal Outcomes - Excercise // project: CDA Lab Guide // author: your name // date: today's date use sci-review, clear // Task 2: Estimate an MNLM of jobclass on female, enrol, and phd. List the // output from listcoef, help. // Task 3: Compute the discrete change coefficients with prchange with all // variables held at their mean. Verify the results with prvalue. // Task 3a: use prchange to compute the discrete changes and marginal // effects when all variables are held at their means. // Task 3b: for one of the variables, verify the computed value of the discrete // change using prvalue. // Task 3c: use listcoef to list the coefficients for phd. // Task 3d: interpret the effect of phd on jobclass using odds ratio // coefficients. /* Type your answer here */ // Task 3e: use listcoef to list the coefficients for all variables // Task 3f: use mlogview to plot the odds coefficients and discrete changes. // use prchange to set the starting values for mlogview/mlogplot; here I set // the base values to be the mean values of all independent variables. // odds ratio coefficients for phd only // discrete changes for female, with standardized coefficients for enroll // and unstandardized for phd. // add discrete changes // Task 3g: interpret the effects using odds ratio coefficients. /* Type your answer here ** female ** enroll ** and so on... */ // Task 4: Test the effects of each variable and of whether dependent // categories can be combined. // Task 4a: estimate the MNLM of jobclass on female, enrol, and phd. // Task 4b: use mlogtest to compute LR tests for each variable. // Task 4c: write up the results of the test for phd. /* Type your answer here */ // Task 4d: use mlogtest to compute LR tests that categories can be combined. // Task 4e: write up your conclusions regarding combining categories. /* Type your answer here */ // SHOW AND TELL: Here is what I'd like you to turn in for a model // that you find interesting. use sci_review, clear mlogit jobclass female enrol phd, basecategory(4) nolog tab jobclass // turn this in desc female enrol phd // turn this in sum female enrol phd // turn this in prchange // don't turn this in mlogplot phd, std(u) p(.1) or ntics(9) // turn in graph export cda07b-ex7-showandtell1.emf, replace mlogplot female enrol phd, std(0uu) p(.1) or dc ntics(9) graph export cda07b-ex7-showandtell2.emf, replace log close