Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 Q1. In class I demonstrated a regression of vehicle fatality rates on the percentage of the population living in a rural area on the

6 Q1. In class I demonstrated a regression of vehicle fatality rates on the percentage of the population living in a rural area on the state level using data from 2000. See the .dole Stata_class_demovehicledeaths.do to review what I did in class. Use the data in the le statedata_hw3.dta to complete the following exercises. 1. Repeat the regression separately using data from 1990 and from 1980. Compare your results. i.After opening the dataset you will rst have to create the rural percentage and vehicle fatality rate variables just as we did in class. ii.Use the summarize command (abbreviated sum) to look at summary statistics for the newly created variables. This helps to check that your variables were generated properly and remind you of what scale/units these variables are measured in. iii.Now you can drop all the observations not from 1980 (using the drop or keep commands as I showed in class), then after doing the regression, clear the data, reload the original dataset, and then restrict it to 1990 data. Alternatively you can use an if statement as part of the regression command: regress vehicledeathrate ruralpercentage if year==1980, robust 2. Now, using only data from 2000 include the state's per capita income as an addi- tional regressor. To estimate a regression with multiple regressors use the com- mand regress vehicledeathrate ruralpercentage income_percap, robust if the data only includes 2000 observations or regress vehicledeathrate ruralpercentage income_percap if year==2000, robust to make sure you restrict the estimation to the 2000 observations. Compare your results to the regression that does not include the income vari- able (the regression we did in class) and explain any di erences. 3. Now again run a regression with the rural variable and the income variable both as regressors but this time use all 153 observations across the three years. Report your results. Explain why the standard errors are smaller than in the previous regressions. Q2. For this question use the data mcas.dta. This dataset was modi ed slightly from the data provided by Stock and Watson on the textbook's website. See the descrip- tion on the website, http://wps.aw.com/aw_stock_ie_3/178/45691/11696965. cw/index.html . Use the bar on the left of that webpage to go to \\Datasets for Replicating Empirical Results" and then the data is under the heading \\California Test Score Data". 1.Create a scatter plot with district average 4th grade test scores (this variable is named totsc4 in the dataset) as the dependent variable and the percentage of students in the district qualifying for a reduced price lunch (this variable is named lnch pct in the dataset) as the independent variable. This is done simply by typing the command scatter totsc4 lnch_pct . Does it appear from the scatter plot that there is a relationship between these two variables? 2.Do you think the relationship shown in the scatter plot you just created might be confounded in some way because school districts with a high percentage of students qualifying for a reduced price lunch tend to also have a low per capita income? That is, is there an omitted variable bias? 3.Use a regression analysis to separate the e ect of per capita income from the e ect of the percentage of students qualifying for a reduced price lunch on test scores. That is, estimate the regression model with two regressors using the command regress totsc4 lnch_pct percap, robust and compare this to the simple regression that excludes percap. Explain the results carefully. Make sure to keep track of the units each variable is measured in. s###################n###########5#######K####B############@B#####Z@# ### B########24 Mar 2014 14:57### code#ipa#########################municipa########### ##############district#########################regday#d######################### specneed#########################bilingua#########################occupday###### ###################tot_day##########################s_p_c#e4#################### #####spec_ed##########################lnch_pct#########################tchratio# ########################percap#4#########################totsc4#4############### ##########avgsalry#########################pctel#e4############################# ##############################%8.0g#######%29s########%25s########%8.0g#######% %29s#######%12.0g######%8.0g#######%8.0g#######%9%25s######%9.0g####### %9.0g#######%9.0g#######%12%8.0g####%9.0g#######%9.0g#######%9.0g####### %9.0%9.0g############################################ %12.0g########################################### %8.0g############################################ %8.0g############################################ %9.0g############################################ %9.0g############################################ %9.0g############################################ %9.0g############################################ %12.0g########################################### %9.0g############################################ %9.0g############################################ %9.0g########################################################################### ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ #################District Code (numerical)#######@######@######5#########_svars#xtKeyAdjCoMunicipa lity (name)#ical)#######@######@######5#########_svars#xtKeyAdjCoDistric t Name#name)#ical)#######@######@######5#########_svars#xtKeyAdjCoSpe nding per pupil, regular#####@######@######5#########_svars#xtKeyAdjCoSpending per pupil, special needs#######@######5#########_svars#xtKeyAdjCoSpending per pupil, bilingual#eds#######@######5#########_svars#xtKeyAdjCoSpending per pupil, occupational########@######5#########_svars#xtKeyAdjCoSpending per pupil, Total#tional########@######5#########_svars#xtKeyAdjCoStudents per Computer#tal#tional########@######5#########_svars#xtKeyAdjCo% Special Education students#nal########@######5#########_svars#xtKeyAdjCo% Eligible for free/reduced price lunch#@######5#########_svars#xtKeyAdjCoStudents per Teacher#educed price lunch#@######5#########_svars#xtKeyAdjCoPer Capita Income#er#educed price lunch#@######5#########_svars#xtKeyAdjCo#er Capita Income#er#educed price lunch#@######5#########_svars#xtKeyAdjCo#er Capita Income#er#educed price lunch#@######5#########_svars#xtKeyAdjCo#er Capita Income#er#educed price lunch#@######5#########_svars#xtKeyAdjCo#######ABINGTON##TY#Y#TER#TA N##00###Abington#ounty Agr#Tech#Ti#}E######&# A iA##AMESBURY##TY#Y#TER#TAN##00###Amesbury#onop)#gr#Tech#T#E#######33@ffA33A##Ajt.@#@/D B######AMHERST###TY#Y#TER#TAN##00###Amherst##on-op)#gr#Tech#T?#3 %F[#####6#ff@AffA33{A}?5^I&@#2D###z@ #ANDOVER###TY#Y#TER#TAN##00###Andover##on-op)#gr#Tech#TM#R? F####### @ 4A33S@ A ES:@#@5Du&B#### #ARLINGTON#TY#Y#TER#TAN##00###Arlington#nop)#gr#Tech#T#3##F########33@33A333AffAmr5@#@3D#B#,@##ASHLAND## #TY#Y#TER#TAN##00###Ashland# (non-op)#)#ech#T#q# F########)Aff^A AffAx5@#/D B######ATTLEBORO#TY#Y#TER#TAN##00###Attleboro#-op)#p)#)#ech#T##F2##,#ff@33SAA##Aq= /@#@-D##B#>##AUBURN####TY#Y#TER#TAN##00###Auburn#ro#op)#p)#)#ech#T##R#F######Z###HA1A33+AyA#####1@#@2D#[#B######AVON#00### TY#Y#TER#TAN##00###Avon###ro#op)#p)#)#ech#T#\\9F#######33@TAff>A##xA##V#0@#0D#########AYER#00###TY#Y#TER#TAN##00###Ayer###ro#-op)#p)#)#ech#T# %=F#######ff@ffA33Aff6Ay&1#,@#/DB`#B######BARNSTABLE#Y#Y#TER#TAN##00###Barnstable#op)#p)#)#ech#T###F# ##### AffnAA A K7A`1@##0D#Bm? ##BEDFORD#LE#Y#Y#TER#TAN##00###Bedford#nonop)#)#)#ech#T`##+F######B#@A9@lA p= 8@#@4Ds#B######BELLINGHAM###Y#TER#TAN##00###Bellingham##op)#)#)#ech#T#{E #####ff#A##A#A A rh/@##1D| #B######BELMONT#AM###Y#TER#TAN##00###Belmont#am##op)#)#)#ech#T##U#F######### pAqA##@ffA^I #:@##6DL)Bd!#@##BERKLEY#AM###Y#TER#TAN##00###Berkley#am##op)#)#)#ech#T# [E######Z#\\A A33 @ A I #+G@#1DA######BERLIN##AM###Y#TER#TAN##00###Berlin##am##op)#)#)#ech#T##F #########@ A## @ffnA|? 5#3@#6D#B######BEVERLY##M###Y#TER#TAN##00###Beverly#ton (nonop)#ch#Tm##F######a##AffAtA##AV#-o2@#@2D# B######BILLERICA####Y#TER#TAN##00###Billerica#n (non-op)#ch#T##F###### %#! A33kA##@ffAQ#e0@#1D#########BOSTON##A####Y#TER#TAN##00###Boston#(nonop)#p)###ch#T##=#BF"##q)##33@ A## B##Ax)/@##&D %B,A$#BOURNE#######Y#TER#TAN##00###Bourne#(nonop)#p)###ch#T#c#F######S###xA33CA##AA#C-@#/D##B#### %#BOXBOROUGH###Y#TER#TAN##00###Boxborough#-op)#p)###ch#T *#F######d#33#A#A? ##Arh\\8@##5D#######&#BOXFORD#GH###Y#TER#TAN##00###Boxford#gh#op)#p)###ch#TH#E#######@ffNA333? AM>@#4D#######'#BOYLSTON#H###Y#TER#TAN##00###Boylston#h#op)#p)###ch#TA#RF######A#33cA33A @ A##V#6@#4D'#B####(#BRAINTREE####Y#TER#TAN##00###Braintree##op)#p)###ch#T#nE#######33@33A###A A9 v2@#1D#Bt>)#BREWST ER#####Y#TER#TAN##00###Brewster###op)#p)###ch#T#{F#F######)#ff@##hAdA AZd; O0@#3D##Bv#?? +#BRIMFIELD####Y#TER#TAN##00###Brimfield#r (nonop)#ch#TB#=#E#######@##A9A A K7A +@##0D #B####,#BROCKTON#####Y#TER#TAN##00###Brockton##r (nonop)#ch#Tc###Fm#####I#lAfffA##XB A)\\ *@#)DQ#B?#BROOKFIELD###Y#TER#TAN##00###Brookfield# (nonop)#ch#T#R#E######p#ff@ffA##AffVA#~j(@##1D#B####.#BROOKLINE####Y #TER#TAN##00###Brookline## (non-op)#ch#T##)(GF#"#######@33AIA|A %#C#=@#@5D# B## @0#BURLINGTON###Y#TER#TAN##00###Burlington#onop)#p)#ch#T:#H#F######@tA##@##XA9v_4@##3D#B##? 1#CAMBRIDGE####Y#TER#TAN##00###Cambridge##on-op)#p)#ch#T7"8F#! ##)#&###ffAAff^A#/$#3@##-D B@2#CANTON#######Y#TER#TAN##00###Canton#ge##onop)#p)#ch#T#FE######<#33#A A## @33A)\\#6@##4Dff#B>3#CARLISLE### ##Y#TER#TAN##00###Carlisle###onop)#p)#ch#T#2F###########ff^A>##AK71B@#8DNb*B####4#CARVER#### ###Y#TER#TAN##00###Carver#e###onop)#p)#ch#T#E#####ff#AAff^A AX9 v>,@#.DJ#B####7#CHATHAM#0## ##Y#TER#TAN##00###Chatham# (nonop)#)##ch#T#F^F#######ff@##8A$A##@Ajtx2@#Df&#Bk@8#CHELMSFORD###Y#TER#TAN##00###Chelmsford#onop)#)##ch#T#E#########@iA##`@AMb5@#2D)#B# c>9#CHELSEA#RD###Y#TER#TAN##00###Chelsea#rd#onop)#)##ch#T;#H,F######@ff6AB##A|?5#'@##(D# B#A=#CHICOPEE#D###Y#TER#TAN##00###Chicopee#eld (nonop)#h#T#RuF###### A A #B A +@##+D#Bk#@?#CLARKSBURG###Y#TER#TAN##00###Clarksburg#on-op)#op)#h#T_# F#######@##A A33[A I #+G*@#2Dw#B####@#CLINTON#RG###Y#TER#TAN##00###Clinton#rg#on-op)#op)#h#T? #E######ff&@Aff#B##A#-.@#0D##B#H4? A#COHASSET#G###Y#TER#TAN##00###Cohasset#g#onop)#op)#h#T#c#F########@ A33s@33{A "~*? @##5DF6#B####C#CONCORD##G###Y#TER#TAN##00###Concord#(nonop)##op)#h#T#CF#######@##8A##@@##AHz#? @#6Ds&BI>D#CONWAY###G###Y#TER#TAN##00###Conway##(non-op)##op)#h#T q#E#########@Aff#A A#X9 0@#7D#B####G#DANVERS##G###Y#TER#TAN##00 ###Danvers#non-op)#op)#)#h#T#k#F#######ff#AffnA@33A2@#@1D##BP&>H#DARTMOUTH####Y#TER#TAN##00###Dartmouth#nop)#op)#)#h#TQ#{@E######e#33@YA9A A I #+.@#0Dy)#B{#"?I#DEDHAM##H####Y#TER#TAN##00###Dedham#th#nop)#op)#)#h#TQ#'E####### @## Aff@ A Q##3@##2D{T#B##? J#DEERFIELD####Y#TER#TAN##00###Deerfield#nop)#op)#)#h#Tg#`#F######E#@##`A###A33A-? 1@##1D#B####M#DOUGLAS#D####Y#TER#TAN##00###Douglas#(non-op)#p)#)#h#T# E##########Aff^A@ AR #Q-@#1D #B####N#DOVER#0#D####Y#TER#TAN##00###Dover#s#(nonop)#p)#)#h#TO#RM#F######5#33@Aff? A#/$D@#@7Du$B####O#DRACUT##D####Y#TER#TAN##00###Dracut##(nonop)#p)#)#h#T#E#########@ADA A5^ I 0@##0D B?R#DUXBURY#D####Y#TER#TAN##00###Duxbury#e (nonop)##)#h#T#q}E##########qA?##AQ#8@##5D#B####S#EAST BRIDGEWATER#R#TAN##00###East Bridgewater#)##)#h#T##F#######ff#ADA@ffA&1##.@#DV##B####W#EAST LONGMEADOW##R#TAN##00###East Longmeadow#(nonop)###RE#######ff#A##Aff@33Ax 1@#@6D##B####U#EASTHAM#DGEWATER#R#TAN##00###Eastham#okfield (nonop)###Z;F#######33@33[AffAffnA#/$##0@#3D#######V#EASTHAMPTON#ATER#R#T AN##00###Easthampton#eld (non-op)# ##fE#######33#A##AffA| AA`b.@#-Dp#B#?X#EASTON##GMEADOW##R#TAN##00###Easton#ngmeadow#(nonop)###=E########AffA##`@33Ajt##3@##4D#B####Y#EDGARTOWN#EADOW##R #TAN##00###Edgartown#eadow#(nonop)###8F######*#ff@33A##hA##hAE=6@#1D#######\\#ESSEX#0###EADOW##R#T AN##00###Essex##t (non-op)#onop)####F######n###@ffVA#AffAt##63@##/D# B####]#EVERETT###EADOW##R#TAN##00###Everett# (non-op)#on-op)##SE### 8#ff#A A33!Bff Aq= p,@#0D#B?^#FAIRHAVEN#EADOW##R#TAN##00###Fairhaven#non-op)#onop)#F#/F######v# A33cA##A A |?5^:*@#/Dl#B####_#FALL RIVER#ADOW##R#TAN##00###Fall River#on-op)#on-op)### #F########AffvAMBA;O%@#*D Ak@`#FALMOUTH#R#ADOW##R#TAN##00###Falmouth#r#on-op)#on-op)#J#)8E###### ###@A##HAffA##AK7!1@#1D]#B}7| >a#FITCHBURG##ADOW##R#TAN##00###Fitchburg##on-op)#on-op)#]##F| #######ffNA33{AffHBAHz#G(@#@)DT#BW#Ac#FOXBOROUGH#ADOW##R#TAN##00###F oxborough#on-op)#onop)##RE#######@Aff@ffANb#X9T2@#@4Ds( B#>d#FRAMINGHAM#ADOW ##R#TAN##00###Framingham#on-op)#on-op)#1###F####### A33A33AffnAx&1h4@#@1D##!Bqp Ae#FRANKLIN#M#ADOW##R#TAN##00###Franklin#m#on-op)#onop)#m#fE########ff@YAl@##`A|? 5^:2@#@6D@#B####f#FREETOWN#M#ADOW##R#TAN##00###Freetown#m#on-op)#on-op)#3+ F######K# AAffFA##A~j4/@#1D7I#B####g#GARDNER##M#ADOW##R#TAN##00###Gardner##m# on-op)#onop)###;E########@AffAffADli*@##,D##B####i#GEORGETOWN#ADOW ##R#TAN##00###Georgetown#on-op)#on-op)###F#########@1A@##A##V#1@##3DuS#B####k#GLOUCESTER#ADOW##R#TAN##00###Gloucester#p)#op)#on-op)###F####)####@33A33AffA%#C#0@#/D# B####n#GRAFTON#ER#ADOW##R#TAN##00###Grafton#non-op)#)#onop)###}E#######33#AaAff@qA ? P1@#2D###B####o#GRANBY##ER#ADOW##R#TAN##00###Granby##non-op)#)#onop)#I#3#F######O#ff6A33kA## A33Ash| 0@##/D#B####p#GRANVILLE##ADOW##R#TAN##00###Granville#n-op)#)#on-op)#H q#E#######@33ADA33sAp= /@#0DQA####r#GREENFIELD#ADOW##R#TAN##00###Greenfield#ngton (nonop)_#RJE######Q#ff@##A33A33{AA`b+@#@D#######u#HADLEY##LD#ADOW##R#TAN##00###Hadley#nd (non-op)#onop)}#\\##F#######qA##@A##@##AMb#X90@#5D}A####v#HALIFAX##D#ADOW##R# TAN##00###Halifax#d (non-op)#on-op) R#E######d##AAdAAKw.@#@0DW#B####z#HANOVER##D#ADOW##R#TA N##00###Hanover#(non-op)###on-op)l#.E######? #33@##`A9@ADl1@#2DFv*B####}#HARVARD##D#ADOW##R#TAN##00###Harva rd# (non-op)##on-op)L#HS9F######v###@##0Aff?A#Zd;1@#8D| A####~#HARWICH##D#ADOW##R#TAN##00###Harwich# (non-op)##on-op)## #F######4#33@33A33[AyA p= .@##0Dz#B#####HATFIELD#D#ADOW##R#TAN##00###Hatfield#(non-op)##onop)a#)#F######(#ff@##hA@33cAJ #+1@#2DA#####HINGHAM#L##ADOW##R#TAN##00###Hingham#on-op)##)##onop)#=n#F#########(A\\AffF@33A`" 9@#3D3'B#####HOLBROOK###ADOW##R# TAN##00###Holbrook#(non-op)##on-op)#q#F########33+A##AffAffA ? .@#0D}#B#####HOLLAND####ADOW##R#TAN##00###Holland#non-op)#)##onop)Y#aE###### ffVA\\AffA##Ax&,@#0DBA#####HOLLISTON##ADOW##R#TAN##00###Holli ston#n-op)#)##on-op)#\\aE########AAff? ffA95@#1D########HOLYOKE#N##ADOW##R#TAN##00###Holyoke#n#nop)#)##on-op)#qE###Q#####AAffB33A##V#&@#$D:#BA#HOPEDALE###ADOW##R#TAN##00###Hopedale##n-op)#)##onop)Z##F######m#33@ffA @33 AZd;O0@#@2D#B#####HOPKINTON##ADOW##R#T AN##00###Hopkinton#n-op)#)##on-op)#qE###########qAff? 33A#Zd;6@##3D#B#####HUDSON##N##ADOW##R#TAN##00###Hudson#ston (non-op)#op)#EJ"####v#ff#AA333A33AES2@##1D#Bvb? #HULL#00#N##ADOW##R#TAN##00###Hull###ston (non-op)#op)#=LE#####U#@33AffAffAx&10@#0D3 B#####IPSWICH#N##ADOW##R#TAN##00###Ipswich#on (non-op)##op)###E#######ff@33SA@A,4@#@2D B#####KINGSTON###ADOW##R#TAN##00###Kingston#n (non-op)##op)##rE#########@##pA##@ A# 0@#@1D##B#####LAKEVILLE##ADOW##R#TA N##00###Lakeville# (non-op)##-op)#fNE###### #! AqA@##AMb00@#.D7I#B#####LANESBOROUGH#OW##R#TAN##00###Lanesboro ugh#n-op)###-op)# F######I#@ffA##hA A? 0@#0D#B#####LAWRENCE#UGH#OW##R#TAN##00###Lawrence#ugh#n-op)###-op) #!F###H #33@33+A##B33A#Zd;_#@#&D^z#BoZmA#LEE#.00##UGH#OW##R#TAN##00###Lee#6# ce#ugh#n-op)###-op)##E#### 6#@AffATA#.@#2D? #B#####LEICESTER#GH#OW##R#TAN##00###Leicester#gh#n-op)###op)*#RLE########A| A33{A33A&1#/@##1D#B#####LENOX#0#R#GH#OW##R#TAN##00###Lenox#ter#gh#nop)###-op)#n#F#######@ A A##hAOn0@#5D#BO? #LEOMINSTER#H#OW##R#TAN##00###Leominster#h#n-op)###-op)D# #E######## A33 AffAQ#/@#@.Db#BG##? #LEVERETT#R#H#OW##R#TAN##00###Leverett#r#h#n-op)###op)#qE##########QA A##`A#/$#A3@##DA#####LEXINGTON##H#OW##R#TAN##00###Lexington##h#n-op)###-op)#)&(F ####a# @33 A@ffvA+#>@##9Du0B;&? #LINCOLN####H#OW##R#TAN##00###Lincoln#non-op)#p)###-op)S#GF######! 33#@33cA333@ff>A#A@##4D########LITTLETON##H#OW##R#TAN##00###Littleton#n -op)#p)###-op) #3#F####### A4Aff@##A(\\3@#6D! 0#B#####LONGMEADOW#H#OW##R#TAN##00###Longmeadow#-op)#p)###-op)a#[ F#######@##A##@@33sAX9v>=@#@2Dj#B9c? #LOWELL##OW#H#OW##R#TAN##00###Lowell#dow#-op)#p)###-op)# `#F####P#33@TAbB##Axf)@##)D# BA#LUDLOW###W#H#OW##R#TAN##00###Ludlow#dow#-op)#p)###-op)X#Ep! #####1A##A33kA##A,@#@/D5# B#####LUNENBURG##H#OW##R#TAN##00###Lunenburg##-op)#p)###op)##F#######33@ff6A33s@ A "~*3@#/D3#B#####LYNN#00#G##H#OW##R# TAN##00###Lynn##urg##-op)#p)###-op)#\\i#Fx#####33#AffA7B##AZd;O *@##(D#B@#LYNNFIELD##H#OW##R#TAN##00###Lynnfield##-op)#p)###-op)z## F######`#@DAffF@ffA rh1:@#@8DM#B#####MALDEN##D##H#OW##R#TAN##00###Malden#ld##-op)#p)###op)###FE###'*#AA A33 A33Ap= -#@/D###L#d@#MANCHESTER#H#OW##R#TAN##00###Manchester#-op)#p)###op)##F#######@1A##@##hAn#j=@#4Db#B#####MANSFIELD##H#OW# #R#TAN##00###Mansfield##-op)#p)###op)##qE#######IAffA@##ANb#X942@#2D#Bz#? #MARBLEHEAD#H#OW##R#TAN##00###Marblehead#-op)#p)###op)#R##F######c#@yA@##A= p>@#@3D#-#B>#MARION##AD#H#OW##R#TAN##00###Marion#ead#-op)#p)###-op) #^1F########ff@AAff#A33AK7A5@#@2D##B#####MARLBOROUGH##OW##R#TAN ##00###Marlborough#op)#p)###op)#,E#######ff6A A tA33Ajtx2@#@0D'#B#Y@#MARSHFIELD###OW##R #TAN##00###Marshfield##op)#p)###-op)##{#F#### [#33;A##PA##@ffAsh| _3@#5DBA9>#MASHPEE#LD###OW##R#TAN##00###Mashpee#ld##op)#p)###op)_#RE#########`@ffvA##AAZd;O@##.Dy#B#####MATTAPOISETT#OW##R#TAN##00###Mattapoisett#p)#p)###op)#q#F#######ff@33KAIA A# Gz3@#.D B#####MEDFIELD#ETT#OW##R#TAN##00###Medfield#ett#p)#p)###op)##)`E########Aff>A? A |? 5^#:@#8DR#B#####MEDFORD##ETT#OW##R#TAN##00###Medford##ett#p)#p)###op)l##0F{.##S-#ff#AAAffA7A`0@#@D##Bs#@#MEDWAY###ETT#OW##R#TAN##00###Medway###ett#p)#p)###op)x#RE########@ffAff@33A##Zd2@#@2D#B#####MELROSE##ETT#OW# #R#TAN##00###Melrose##ett#p)#p)###-op)#H#E#######ff&A A## @ffAE34@#2D6#Bm #METHUEN##ETT#OW##R#TAN##00###Methuen# > (non-op)####-op)I# F/### ##ff@ff^A A## A##V#-2/@##1De#B#? #MIDDLEBOROUGH#W##R#TAN##00###Middleborough#op)####op)6#7E#####g#@33{Aff~A A# GzT,@#@.D9#B#####MIDDLETON#UGH#W##R#T AN##00###Middleton#d (non-op)#-op) fdE#######33#AffA##@A#+#3@#3D########MILFORD#N#UGH#W##R#TAN ##00###Milford#n#d (non-op)#-op)#{:EV! #####ff#A##A##AQA(\\/@#/D#.#Bg? #MILLBURY##UGH#W##R#TAN##00###Millbury##d (non-op)#op)#E######2#4AffnAIA A .@#/D########MILLIS####UGH#W##R#TAN##00###Millis#y##d (non-op)#op)p##E#######y@A##@##A#V#=4@#.D########MILTON####UGH#W##R#TAN##00###Milton#le (non-op)#)#op)T#AE######X####A@ffAlq6@#3Dd;B#Q? #MONSON####UGH#W##R#TAN##00###Monson#(non-op)#p)#)#op)#{#E######5#l@ffAlAffA r,@##5D#A#####NAHANT####UGH#W##R#TAN##00###Nahant#ashington (nonop).#E########y@33 B@33sAMb#X6@#@1D##B#####NATICK####UGH#W##R#TAN##00###Natick#et#ingto n (non-op)#q$F########33@tA###A##A##V#6@#@4Ds#B#####NEEDHAM###UGH#W##R#TAN##00###Needham#t#ington (nonop)#+#F######{#@ffnA##@##A(\\;@#@6D$B#K>#NEW BEDFORD#H#W##R#TAN##00###New Bedford#(non-op)#op)#q##F"#####33#AqAhB33Ajt%@##*D## BD@#NEWBURYPORT#H#W##R#TAN##00###Newburyport#-op)#nop)#p)##F######,###@A33CA @ tA5^I #3@#3D1#B#>#NEWTON##ORT#H#W##R#TAN##00###Newton#em (non-op)#nop)##/Fd##m##33@33sAff@##A p= <@#@8Dm',B#?#NORFOLK##RT#H#W##R#TAN##00###Norfolk#m (non-op)#nop)##f*E#######ff@33cAl@ A%# C#3@#@5D########NORTH ADAMS#H#W##R#TAN##00###North Adams#on-op)#n-op)##W#F###### ### A33A#BffVA##V#%@#@+DRA#####NORTH ANDOVER#W##R#TAN##00###North Andover#-op)#n-op)##R7#F######O###@TA@33AE6@#1D7#BC ?#NORTH ATTLEBOROUGH#TAN##00###North Attleborough#n-op)# nE######B###(AffnA#A33A)\\1@##3D##B>#NORTH BROOKFIELD#H#TAN##00###North Brookfield#h#nop)#X#)HE######I#33@,AffA##hAQ#k+@#2Ds#B#####NORTH READING#LD#H#TAN##00###North Reading#n-op)#op)##Rl#F########AffNA33s@ A #3@##8D!#B#n? #NORTHAMPTON#H#W##R#TAN##00###Northampton#on-op)#n-op)### F#####B#@ffAA##pA">-@#@/D# B?#NORTHBOROUGH#ROUGH#TAN##00###Northborough#rough#nop)###HE######~#33#A33kA##@@ffAQ#6@#@6D#B:>#NORTHBRIDGE##ROU GH#TAN##00###Northbridge##rough#n-op)##PE######b# A##AA A rhQ,@#1D)#B#####NORTON##ADING#LD#H#TAN##00###Norton#eading#n-op)#op)#w#RNE########A##A33#AAS#0@#@/D#B#####NORWELL#ADING#LD #H#TAN##00###Norwell#ading#n-op)#-op)##B#F#######33#A##HAff?ffAI #+#8@#5D .B#####NORWOOD#ADING#LD#H#TAN##00###Norwood#ading#n-op)#op)###H#F##########A33AAAA rh12@##4D!#B#(?#OAK BLUFFS#NG#LD#H#TAN##00###Oak Bluffs#ng#n-op)#op)###=AQG#######33s@##A##xAff^AR#0@#4D########ORANGE###S#NG#LD#H#T AN##00###Orange#(non-op)#op)#-op)#O E#########@AffFByAE6&@##.DJA#####RANDOLPH#OWN##LD#H#TA N##00###Randolph#own#n-op)###op)# ###F@4#### #ff6A##xAffA##A}?5^)1@#DN#BR@#READING##OWN##LD#H#TAN##00###Reading#(nonop)#)###op)#=#=vEtk#####@QA33S@##Am#5@##4D` %#B#####REVERE###OWN##LD#H#TAN##00###Revere#h (nonop)####op)#m#{E###:~# @ DAff2BffA##V#-r-@##,D=J#Bw? #ROCHESTER#WN##LD#H#TAN##00###Rochester#non-op)####op)# #q#F######3#@ffVA@ffAw#//@#0DL B#####ROCKLAND##WN##LD#H#TAN##00###Rockland##nonop)####op)##3#F#######ff#A33CAffA##A#Q#.@#@0DF B#####ROCKPORT##WN##LD#H#TAN##00###Rockport##nonop)####op)#}#jE#######ff#A Aff6A33 Ao#3@#@2DS#BS ? ##SALEM#00##WN##LD#H#TAN##00###Salem#d (non-op)#)###op)##H FA###z###@Aff#B AH z#'0@#@,D#B#CA##SANDWICH##WN##LD#H#TAN##00# ##Sandwich#ld (nonop)#op)####F#######ff>A #SHERBORN##WN##LD#H#TAN##00###Sherborn# (non-op)#)#op)##H %F########ff#A#Aff#@ffA;OD@#7Du$B######SHIRLEY###WN##LD#H#TAN##00 ###Shirley## (non-op)#)#op)#?#vE#######YA##A##A##Ax)/@##/D! #B######SHREWSBURY#N##LD#H#TAN##00###Shrewsbury#nonop)#)#op)###E###### @##xA @ff^A5^I 4@##6D#B#?##SHUTESBURY#N##LD#H#TAN##00###Shutesbury#nonop)#)#op)###_E######]#33+AA333AffA#Zd;/@#/D#A######SOMERVILLE# N##LD#H#TAN##00###Somerville#nonop)#)#op)#D##F@###7##4AABffAS[.@#,Dj#Bh@##SOUTH HADLEY##LD#H#TAN##00###South Hadley#nop)#)#op)#_#3Z#F######*##A33A##HA33Ad;OW0@#,DFv#B######SOUTHAMPTON## #LD#H#TAN##00###Southampton#on-op)#)#op)##{E######R#33#A\\A##(AffA##### 1@##/DZ BR#?##SOUTHBOROUGH##LD#H#TAN##00###Southborough#nop)#)#op)##RE#######!A##xA###? A K9@#4De#B 9 ? ##SOUTHBRIDGE###LD#H#TAN##00###Southbridge##n-op)#)#op)# %#=#E#######ff@ffA33#BqA #+#)@#@-D^:#Bb?##SPRINGFIELD###LD#H#TAN##00###Springfield#-op)#)#)#op)## $F'#####33#A Aff B33A^I #+'@#@)D#B@##STONEHAM#LD###LD#H#TAN##00###Stoneham#ge (nonop)#op)###)5#F######[##ATAff#A##A#Q82@#0D#B9V? ##STOUGHTON#D###LD#H#TAN##00###Stoughton#e (non-op)#op)##E ###r######A A##PA33 A ? P1@#2Dp#Bj>##STURBRIDGE####LD#H#TAN##00###Sturbridge#p)#onop)#op)###Y#F#######ff&A33;A#A33sA1##Z0@#3D#B#### #SUDBURY#GE####LD#H#TAN##00###Sudbury#ge#p)#on-op)#op)###) ,F######e#ff#ATAl@ A r@@#@6DDK$B####! #SUNDERLAND####LD#H#TAN##00###Sunderland#p)#on-op)#op)###{ F#########@aAA##A#X9(@##3D#B#1A"#SUTTON##ND####LD#H#TAN##00 ###Sutton#and#p)#onop)#op)#x#)E#######@##A##@##A#Zd;0@#3DP#B######SWAMPSCOTT# ###LD#H#TAN##00###Swampscott#p)#onop)#op)#####F#########8A33sA##@33{A~jt9@#2D#B####$#SWANSEA#TT#### LD#H#TAN##00###Swansea#tt#p)#onop)#op)##{.E######"#@##pA\\AA333333.@##-DJL#B#### %#TAUNTON#TT####LD#H#TAN##00###Taunton#tt#p)#onop)#op)##f*Ea#####ff@33AffAffA`"9+@#@D##B#?'#TEWKSBURY#####LD#H#TAN##00###Tewksbury#(nonop)#)#op)##3yE######AA33KA##@ffAMb#X92@#@2D###W? (#TISBURY#Y#####LD#H#TAN##00###Tisbury#y#(nonop)#)#op)####'F##########33SA33AaA##Zd#1@#6DHa#B####*#TOPSFIELD#### #LD#H#TAN##00###Topsfield#on-op)#)#)#op)### F######o#@#A? ##A#####`;@#@3D#######,#TRURO#0#D#####LD#H#TAN##00###Truro#nd (nonop)##)#op)##3Y?F######R#ff@#WELLFLEET#GH##LD#H#TAN##00###Wellfleet# (nonop)##op)###aF#######33@1AAIAx)-@#@4D#######B#WEST BOYLSTON#LD#H#TAN##00###West Boylston#)##p)##op)##3E######~#@\\A33@qA"~j1@##5D/#B#### C#WEST BRIDGEWATER#H#TAN##00###West Bridgewater#p)##op)#4##F########33#A A## @33SA#X960@##3D#######L#WEST SPRINGFIELD#H#TAN##00###West Springfield#op)#p)#:#oE#######A##AA33A(\\/@#,Dh B#H4@A#WESTBOROUGH###LD#H#TAN##00###Westborough#op)##p)##op)###1#F#######ff @33[AY@33Ay&1#4@##4D##B ?? E#WESTFIELD#EWATER#H#TAN##00###Westfield#field (nonop)##E####q#@##A A## A33333s,@#-D(#B? F#WESTFORD##EWATER#H#TAN##00###Westford##field (non-op)#&# }E#######33@ff&A @ AT?5@#7D##B#>G#WESTHAMPTON#ATER#H#TAN##00###Westhampton#eld (nonop)# HE######v#4A##A###A33AE#1@#0D##B####J#WESTON##TON#ATER#H#TAN ##00###Weston#wbury (non-op)#p)###)U*F######!33@33sAffF@yA= pmG@#4D#)B####K#WESTPORT#ON#ATER#H#TAN##00###Westport#ury (nonop)#p)##\\ME######I###@33;AffAA /@#/D`#B####O#WESTWOOD#NGFIELD#H#TAN##00###Westwood#ury (nonop)#op)###$F######a#33#A33A###@TA#V#-=:@#4D1B! w>P#WEYMOUTH#NGFIELD#H#TAN##00###Weymouth#ury (nonop)#op)W#q#F#######AA33cAA1##Zd2@#0D#BJ>T#WILLIAMSBU RG#ELD#H#TAN##00###Williamsburg#n-op)#p)#op)#H#F#######! AAtAtAS#2@#.D=#B####U#WILLIAMSTOWN#ELD#H#TAN##00###Williamst own#n-op)#p)#op)#>F########ff@QA)A A ~jt-@#@3D7 #Ba? V#WILMINGTON#N#ELD#H#TAN##00###Wilmington#n#nop)#p)#op)N##E######$#ff>A33cAffF@ AfffffF1@# 2D#B####W#WINCHENDON#N#ELD #H#TAN##00###Winchendon#n#nop)#p)#op)#.E#########AffAA##xAK7I*@##.DrA####X#WINCHESTER #N#ELD#H#TAN##00###Winchester#n#n-op)#p)#op)#4#F######x#@1A33S@33A= p>@#@8D###&I?Z#WINTHROP#R#N#ELD#H#TAN##00###Winthrop#nonop)#)#p)#op)###E#########HA33A A A 1@##0D### @[#WOBURN###R#N#ELD#H#TAN##00###Woburn#p#nonop)#)#p)#op)Q#/E######P#AA33A33AHz#'2@#@4D#######\\#WORCESTE R##N#ELD#H#TAN##00###Worcester#onop)#)#p)#op)#{#F####_##AffA6B A K7*@#@-DFv#B# E@^#WRENTHAM###N#ELD#H#TAN##00###Wrentham#on (nonop)##op)#=J#F#######@33;A33@AE/@##4DLw#B#### clear all // this line clears everything from memory to start with a clean slate use statedata_forclass1013 not needed // this line loads the data; the .dta extension is /* I want to use only the 2000 data so I execute the following command. */ drop if year!=2000 logical statements // != denotes "not equal" and == denotes "equal" in gen ruralpercentage=100*poprural/totalpop // generates a new variable gen rural_dummy=(ruralpercentage>30) /* generates a new variable; the parentheses will create a dummy variable equal to 1 or 0 when the statement inside is true or false, respectively */ gen vehicledeathrate=100000*vehicledeaths/totalpop log using vdrregression.log, replace file will be /* this opens a log file. the called vdrregression.smcl and will be stored in the working directory. the replace option will replace the file with the new version if it already exists in the working directory. */ bys rural_dummy: sum vehicledeathrate command /* sum is short for summarize. the bys (short for bysort) will create summary statistics for the group of rural states and the group of nonrural states separately. */ pause the .do file. execution /* this stops execution of will resume once you type q and hit enter. in the mean- time you can execute new commands in the command window and view the output that has been created so far. */ ttest vehicledeathrate, by(rural_dummy) unequal sample /* this will carry out a two independent t-test for the null that the vdr is the same in the two groups */ scatter vehicledeathrate ruralpercentage reg vehicledeathrate ruralpercentage, robust estimates pause just about mean // computes the OLS regression /* take a look at all of the output of the regression. everything you might want is there. */ predict vdrHat create residuals predict vdrUhat, res values // creates predicted values (Yhat); other options will // the res option creates residauls instead of pred. graph twoway (scatter vehicledeathrate ruralpercentage) (line vdrHat ruralpercentage) /* this overlays two different graphs. scatter is a regular scatter plot line creates a graph with the observations connected by a line. the first variable is always plotted on the vertical axis in both types of graph. See the hlp manual for the many available options for customizing titles, axes, colors, etc. */ graph export figure2.png, replace extension the graph can only be viewed in Stata. */ /* saves the graph. without a specified will be saved in a format that graph twoway (scatter vehicledeathrate ruralpercentage, mlabel(statename)) /// (line vdrHat ruralpercentage) /* mlabel creates a label for each observation on the scatter plot */ graph export figure2.png, replace log close if you fail to */ /* this stops the recording of your Stata session. type this your log file will not be created. s####################################statedata_hw3############################ ############21 Oct 2014 10:22##stateid##########################year########################## ###vehicledeaths####################statename########################totalpop### ######################poprural#########################income_percap############ ########################%8.0g############################################ %8.0g############################################ %8.0g############################################ %20s#f########################################### %12.0g########################################### %12.0g########################################### %8.0g#############################################X########################### ################################################################################ ################################################################################ ##########################################N` ####################T@############hN` ######################################N` ####################T@############hN` ######################################N` ####################T@############hN` ######################################N` ####################T@############hN` ######################################N` ####################T@############hN` ######################################N` ####################T@############hN` ######################################N` ####################T@############hN` ######################################J###_dta##### ### ##0#U#####iis#####T@####B############Hstateid##G###_dta# #### ### ##0#U#####tis#####T@####B############Hyear##D###_dta# #### ### ##0#U#####_TSitrvl#T@####B############H1##X###_dta##### ### ##0#U#####_TSdelta#T@####B############H+1.0000000000000X+0 00##J###_dta##### ### ##0#U#####_TSpanel#T@####B############Hstateid##G###_dta# #### ### ##0#U#####_TStvar#T@####B############Hyear########O#Di strict Of Columbia} ##########Illinois#Of Columbia#####"#j#New Jersey#re#lumbiaRl##R #####Massachusetts#lumbiaQ#+##"###a#Kentucky#Of Columbia@.#q##Z# %#4#North Carolina#umbiaK9M#.##-##South Carolina#umbia"#(####2##Vermont###ta#a#umbia#V##! +##"#####Michigan#etts#lumbia#[)###5###Washington#a#a#umbia8##### ##Louisiana#f Columbia5######(##Oklahoma#ota#a#umbiap"######7##Wisconsin#nia##umb ia]=#+##K# #H#Connecticut##rented#[-# #?! ###Arizona#plus#rented######/###Tennessee#ta#a#umbia);###E#### #Colorado#a#s#rented##S'###>###Y#Idaho### Of Columbia #9##h###6#Maryland##f Columbia<# #e *#r#Pennsylvania#a#umbia#7#####Iowa#####Of ColumbiaX #He#####i#New Mexico#re#lumbia ######S#Montana##pi#s#lumbia[##p#####[#Alaska##plus#rented###/ ##'####Maine###a#f ColumbiaM ## ######Mississippi#s#lumbia>##B##? #3#W#Virginia##ta#a#umbia/J#3##6####California#s#rented##"M##p##g ###Indiana##Of ColumbiaHE#~######Nebraska#pi#s#lumbiat##N#######Missouri#pi#s#lu mbiaQ?#z####!##New Hampshire#lumbia0####6####Hawaii## Of Columbiab| #3##<###_#Arkansas#lus#rented#S|#####6#G#West Virginia##umbiaW$#####1#r#Utah#0####ta#a#umbia~##z######Georgia# Of Columbiav#G#W#### ##Nevada###pi#s#lumbia# #*###!###Minnesota#tts#lumbia3#p######g#Kansas###Of Columbia]###D# ##)##Oregon###ota#a#umbia= # ##'##Ohio###akota#a#umbiai#+#u#####Alabama#plus#rented#$2#####0 ###Texas###e#ta#a#umbiaz#.1,#%#&##North Dakota#a#umbia###G#####8##Wyoming#n#nia##umbia#w##F### ##Delaware#ut##rented#E######,##Rhode Island#a#umbia'##### ##Florida# Of ColumbiaH#g##f#$# New York#o#re#lumbia[#2)#J#.##South Dakota#a#umbia###G##A#&##North Dakota#a#umbia;####+ +##a#Michigan#etts#lumbia}#)#J7###Missouri#pi#s#lumbia:B#(n##2# ##Maryland##f ColumbiaFD#o#BE###Louisiana#f Columbia6#v##)###Iowa#####Of Columbiaw###:##0##I#Indiana##Of Columbia#F###[3$## New York#o#re#lumbiar## +#u@0#5 Texas###e#ta#a#umbia#%3#h2%##North Carolina#umbiaX#62#U2'##Ohio###akota#a#umbiahk#*#4/# #Tennessee#ta#a#umbia<>#%###/ (##Oklahoma#ota#a#umbia($#~##u.##_#Mississippi#s#lumbia5##7## %###Arizona#n#nia##umbia /####4###Kansas###Of Columbia>7##R##3###Hawaii###Of Columbia/C ###=.##South Dakota#a#umbiaW##O##)##R#Kentucky#Of Columbia2.#{###+##f#Alaska##n#nia##umbia3###x##D###Massachusetts#lum biaV#r##HC7#9#Wisconsin#nia##umbia=? ###3*##Pennsylvania#a#umbiamU#$[8#6###Montana##pi#s#lumbiaZ##g## +##q#Arkansas##nia##umbia##`###)####New Mexico#re#lumbia)##J? ##+"##New Jersey#re#lumbiaq## ##I###Maine###a#f Columbiar##` #2##[#District Of ColumbiaB #####I5#k#Washington#a#a#umbia B#H##K: ##Connecticut#a##umbia/##v #N8##Wyoming#n#nia##umbia*##l###0##G#Colorado#a#ia##umbia##=##9##r#Illinois#Of ColumbiaB####a;1#(#Utah######ta#a#umbia###j###+#{#Georgia##Of ColumbiaO#V#MT$#? 5###Minnesota#tts#lumbiaXL8####58####California#ia##umbia#e! ##@3#C#Virginia##ta#a#umbia#VW####a=6##West Virginia##umbiah##y###) ##Nevada###pi#s#lumbia\\###e$##n; ##Delaware#ut#a##umbia ###=,#h#Rhode Island#a#umbia ##3###:##South Carolina#umbia@-#!##y. ##Florida# Of Columbia]####j9###Alabama#n#nia##umbial4##n##,)#`#Oregon###ota#a#um biax"# #j4##!#Nebraska#pi#s#lumbia##'##0####Idaho####Of Columbia ###,!##New Hampshire#lumbia\\y #^K##W>2#^#Vermont###ta#a#umbia&####4###Illinois#Of Columbia# ##@Z1##Utah######ta#a#umbia###### G###Louisiana#f ColumbiaM[9####B##}#Alaska##n#nia##umbia!##{J##X"##New Jersey#re#lumbia}#@##~i #D#Connecticut#a##umbia1#^##^p%##North Carolina#umbia>6j#W0#SO.##South Dakota#a#umbia####D&#m#North Dakota#a#umbia##jR##iE5##Washington#a#a#umbia"Q#g8##Y!##New Hampshire#lumbia/#####$]###Michigan#etts#lumbia#o&#V###New Mexico#re#lumbia####y##mC##_#Arizona#n#nia##umbiaD#yC #3O2#S#Vermont###ta#a#umbiaY##;##P###Massachusetts#lumbiaW^#[##`e# #2#Nebraska#pi#s#lumbia.####L3##Virginia##ta#a#umbia e#P###]##M#Kentucky#Of Columbiai03#AH##F8##Wyoming#n#nia##umbiaw####J##U#District Of Columbia######o###Arkansas##nia##umbia0 #]###B##k#Maryland##f Columbia#L##B###d###Minnesota#tts#lumbiar0? ###Z7#i#Wisconsin#nia##umbia>PE####S,#Z#Rhode Island#a#umbia<##s##T###Kansas###Of Columbia# %######P/###Tennessee#ta#a#umbia#L####K$#_#New York#o#re#lumbia##8$#][-#-#South Carolina#umbia4#.##kI(##Oklahoma#ota#a#umbia(#;@##D##! #Idaho####Of Columbia#####E*##Pennsylvania#a#umbiaE#*#Q###Hawaii###Of ColumbiaT#####T###Iowa#####Of Columbiarc"#`##L###Missouri#pi#s#lumbiamGI####M##| #California#ia##umbia###X###Georgia##Of Columbia7o#ro##R'##Ohio#1#akota#a#umbia#;:'##R0#G#Texas###e#ta#a#umbi al##37#L6##West Virginia##umbiaw####]@ #g#Nevada###pi#s#lumbia*####U###Maine###a#f Columbia#k####ML###Mississippi#s#lumbia #<##=###Montana##pi#s#lumbia@ #mR##B #$ Florida# Of Columbia~# ##5T##6#Alabama#n#nia##umbia;#;##G##| #Indiana##Of ColumbiaN'O#Z###O###Colorado#a#ia##umbia7;#1 #])##Oregon###ota#a#umbia#@)####Q #t#Delaware#ut#a##umbia#{ #`## [ Question 1 // clear all and load data clear all use statedata_hw6 // generate new variables for rural percentage and fatality rate gen ruralpercentage=100*poprural/totalpop gen vehicledeathrate=100000*vehicledeaths/totalpop // summary stats for two new variables sum ruralpercentage vehicledeathrate // OLS regression for 1980 reg vehicledeathrate ruralpercentage if year==1980, robust // OLS regression for 1990 reg vehicledeathrate ruralpercentage if year==1990, robust // OLS regression for 2000 with income per capita as extra regressor regress vehicledeathrate ruralpercentage income_percap if year==2000, robust // and without, form class regress vehicledeathrate ruralpercentage if year==2000, robust // OLS for all years with income per capita regress vehicledeathrate ruralpercentage income_percap, robust Question 2 // clear all and load data clear all use mcas // scatter plot scatter totsc4 lnch_pct // simple regresison regress totsc4 lnch_pct, robust // regresison with control for per capita income regress totsc4 lnch_pct percap, robust Question 1 // clear all and load data clear all use statedata_hw6 // generate new variables for rural percentage and fatality rate gen ruralpercentage=100*poprural/totalpop gen vehicledeathrate=100000*vehicledeaths/totalpop // summary stats for two new variables sum ruralpercentage vehicledeathrate // OLS regression for 1980 reg vehicledeathrate ruralpercentage if year==1980, robust // OLS regression for 1990 reg vehicledeathrate ruralpercentage if year==1990, robust // OLS regression for 2000 with income per capita as extra regressor regress vehicledeathrate ruralpercentage income_percap if year==2000, robust // and without, form class regress vehicledeathrate ruralpercentage if year==2000, robust // OLS for all years with income per capita regress vehicledeathrate ruralpercentage income_percap, robust Question 2 // clear all and load data clear all use mcas // scatter plot scatter totsc4 lnch_pct // simple regresison regress totsc4 lnch_pct, robust // regresison with control for per capita income regress totsc4 lnch_pct percap, robust

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Recommended Textbook for

Elementary Statisitcs

Authors: Barry Monk

2nd edition

1259345297, 978-0077836351, 77836359, 978-1259295911, 1259295915, 978-1259292484, 1259292487, 978-1259345296

More Books

Students also viewed these Mathematics questions