/* Written by (First Initial Last name) : "BChavez" */
/* Points: __/15 - To be filled in by professor*/
clear all
version 14.1 //or whatever your version is
set more off
set rmsg on
cd ""
log using "", replace
ssc install bcuse /* See: http://fmwww.bc.edu/ec-p/data/wooldridge/datasets.list.html/ */
/*Instructions use bcuse and your assigned dataset. I will let you choose how you want to
specify your model. You can choose as many or as as few independent variables as you'd like
Make sure to include comments on what you do to receive full credit on questions. */
/* Bilal: bcuse crime4. Panel will be county year. Y = crmrte */
/* Chris: bcuse keane. Panel will be id year. Y = lwage */
/* Dan: bcuse mathpnl. Panel will be distid year. Y = avgsal */
/* Jessica: bcuse nls81_87. Panel will be id year. Y = lwage */
/* Jugal: bcuse prison. Panel will be state year. Y = crip */
/* Martin: bcuse patent. Panel will be cusip year. Y = lsales */
/* Susan: bcuse wagepan. Panel will be nr year. Y = lwage */
* Describe data
* Summarize data
* Set data as panel data. Interpret the results in English.
* Pooled OLS estimator. Interpret beta on one of your variables (1 point)
* Fixed effects (Also known as within estimator) (1 point)
* Between estimator //Look this up on the Stata Manual (1 point)
* Random effects estimator (1 point)
* Hausman test for fixed versus random effects model. What do the results say (in English) (1 point)
* Population-averaged estimator //Look this up on the Stata Manual (1 point)
* Breusch-Pagan LM test for random effects versus OLS. What do the results say (in English)? (2 points)
* Test for heteroskedasticity.
/* In English, what do the results say? (1 point) If necessary, how would you change
your model after reading these results? (1 point)*/
* Any necessary changes to your model after testing for heteroskedasticity? Place command below :
* Testing for time-fixed effects (use testparm) (1 point)
* Collapse (mean) for one of your independent variables on your year variable. (1 point)
* Generate a variable called DES which is equal to the following "Mean of ___ " where ___ is the variable you collapsed. (1 point)
* Reshape your data wide so that you have years as the columns. (hint: i(DES)) (1 point)
* Upload log, .do file to BB. Upload .do file using your git repository (1 point)