Name: Email ID: @psu.eduWorked with these other students:ECON306 Problem Set 3INSTRUCTIONS: Solve the following questions to the best of your ability. Ask me ifyou do not know how to solve any...

Finish all question in Problem set 3


Name: Email ID: @psu.edu Worked with these other students: ECON306 Problem Set 3 INSTRUCTIONS: Solve the following questions to the best of your ability. Ask me if you do not know how to solve any of these questions before the due date. I will work with you if you are having trouble solving these. To receive full credit for this assignment, the problem set needs to be submitted to Canvas in a single PDF document containing your 1) Stata log file in a .pdf file and 2) any written explanations and answers. All of these components need to be attached together in that order. Late submissions will NOT be accepted. DO NOT email! No assignments will be accepted via email. ECON 306 Problem Set 3 Page 2 First of all, for this problem set, you will have to submit the Stata log file. Stata can record your session into a file called a log file but does not start a log automatically; you must tell Stata to record your session. By default, the resulting log file contains what you type and what Stata produces in response, recorded in a format called Stata Markup and Control Language (SMCL). The file can be printed or converted to plain text for incorporation into documents you create with your word processor. You can find more information here: https://www.stata.com/manuals13/u15.pdf. So, in the beginning of your Stata .do file write the following command: log using PSX, replace (or a different file name). Then, at the very end of your .do file, include log close and then on a new line translate PSX.smcl PSX.pdf. This would translate your Stata SMCL log files directly into PDF files and then use Adobe Acrobat to merge PDF files together. You will need to turn in this log file to receive full credit for this assignment. Please compile the log file in Stata after you have completed all of your code and can run it smoothly without any errors. In that way, your log file would not contain any lines of code that do not produce any results or any duplicate results. Please do your best to include comments in your code (using the ∗ sign in your Stata .do file) and to make the solutions to the different problems as clearly marked as possible. Otherwise, the graders might have to penalize you, if they cannot follow your work. And then I will have to re-grade your work and the whole process becomes highly inefficient. More Fun with Earnings and Height Using the same data as the EarningsHeight.dta from problem set 2, we will perform multiple regression with dummy variables included. We will also explore 2 cases of omitted variable bias. 1 Actual OVB We have seen previously that taller peole earn more money. One potential explanation for this is that there is an omitted variable! What if height is correlated with an omitted factor that affects earnings? Perhaps cognitive ability is the omitted factor. How, you ask? Imagine that poor nutrition and harmful environmental factors in utero and in early childhood negatively affect both cognitive and physical development. Cognitive ability affects earnings later in life but is not captured in the model. a) Would the coefficient on height from earningsi = β0 + β1heighti + ui be biased upward or downward? Why? b) While we do not have a direct measure of cognitive ability in the data set, we do have a variable that measures education (educ) and that is likely correlated with cognitive ability because in our society, people with higher cognitive ability are more likely to attend school longer. If education perfectly captures cognitive ability, then this would eliminate the omitted variable bias. If education is highly correlated with cognitive ability, then this will reduce the size of the bias from the omitted cognitive ability. Run the regression in part a) then comment on how the results change when you add educ to the specification. ECON 306 Problem Set 3 Page 3 2 Region Dummies Generate dummy variables for region. There are a few ways you can do this in Stata. The most obvious, brute force, way is to do something like: generate northeast = 0 replace northeast = 1 if region==1 ...and so on for all regions Another option which works better when 1) there are a lot of categorizations and 2) they’re labeled from the outset is to let Stata automatically generate all the dummies for you. Try: tabulate region, generate(dummy region) You’ll notice that the numbers 1-4 are appended to the variable name. You will want to rename these variables for clarity. For example: rename dummy region1 northeast and so on for all the regions. 3 Regression with Region Dummies Include the dummy variables for region into the specification from part 1b), using South as the reference group. 4 Comparing Regions a) In which region of the country are earnings the lowest? Explain. b) How much higher earnings can someone expect to make in the Northeast compared to the Midwest? Show your work. 5 Lots of Variables Create dummy variables for race. Also create a dummy variable called “male” then run a regression with dummies for region, race, and sex. This time, using Northeast as the reference group for region, other as the reference group for race, and female as the reference group for sex. ECON 306 Problem Set 3 Page 4 6 Artificial OVB Non-hispanic black earners are more likely to be found in the South region. Comment on the bias this would cause if you did not have race data to include in the model. 7 Differential Effect of Education for Males Beginning with the regression in part 5, check if an additional year of education has a different effect on earnings for males. 8 F test in Stata You should have 3 coefficients that are not statisticaly significant. Perform an F test in Stata where all 3 of those coefficients are set to 0. Interpret your results. 9 F test by hand Perform the F-test by hand. There are a couple different ways to perform the calculation of your F-statistic but you only need to do it one way. 10 Save Data Save these data separately from the EarningsHeight.dta that you used for Problem Set 2. Name it EarningsHeight PS3.dta. Actual OVB Region Dummies Regression with Region Dummies Comparing Regions Lots of Variables Artificial OVB Differential Effect of Education for Males F test in Stata F test by hand Save Data Data sexagemrdeduccworkerregionraceearningsheightweightoccupation 04811313184054.75651331 04161212114021.39453125651551 02611611184054.75601081 03711612184054.75671501 03561611128560.38671875681801 02561514123362.873046875631011 02911612138925.3359375671501 04441834184054.75651251 05061423184054.75671291 03811243184054.75661101 03011214184054.75651101 02941823138925.3359375681351 02611611184054.75651231 05011211149430.109375631321 06541644316081.587890625651101 04561724184054.75712021 02661613123362.873046875661301 05741223144152.16015625682201 04041614184054.75661951 03611213149430.109375681351 06011543184054.75641601 03211212133712.96875651151 03311211144152.16015625611251 02711611184054.75641151 05251322244152.16015625601701 03611244184054.75681801 05341842184054.75651281 02961612128560.38671875671151 03511114123362.873046875661401 04611844184054.75631201 0474101316711.2875976563641241 03441364133712.96875641701 03441744138925.3359375661101 05741212123362.873046875652001 05011663184054.75661401 04111514184054.75661301 02911361123362.873046875661401 03521112214021.39453125641601 05811111184054.75661361 02911512133712.96875621151 0421843318168.841796875621501 03411214144152.16015625665011 03211311133712.96875611351 03811612144152.16015625621201 03641614128560.38671875661401 05011333184054.75662001 02961812133712.96875651451 04641614449430.109375611131 05811243123362.873046875631651 04341212123362.873046875671601 04541514184054.75651451 02911212144152.16015625671351 05431613128560.38671875661501 04211612184054.75661451 04311213384054.75681481 03131212328560.38671875661381 05411213149430.109375661601 05911613184054.75701551 05911563184054.75661351 05011211144152.16015625661851 03911223184054.75621481 03511611184054.75611401 03711612184054.75621041 05511311184054.75641601 04661741138925.3359375651401 06341844116081.587890625701451 05441814144152.16015625621541 04811823184054.75641651 03261611184054.75631151 03111414384054.75701681 02711611284054.75681421 04311311184054.75671351 04711212133712.96875671501 03441313211953.455078125631331 04811612184054.75621171 03311614184054.75681151 04061741184054.75692041 03141332123362.873046875651651 03911412138925.3359375641551 02861431110865.4287109375621501 04011514184054.75671501 03811414184054.75621201 05811341138925.3359375651601 03441514112954.765625631351 04341323233712.96875671651 03511411184054.75631141 03111611184054.75661521 03811833184054.75661201 02941612133712.96875611201 05641634149430.109375672501 02861811249430.109375671151 03111614184054.75671401 04141312123362.873046875621851 03611711184054.75661101 04161513249430.109375641301 04611212184054.75641901 05511714184054.75681251 05011414184054.75641601 05831243123362.873046875651401 04511422184054.75651281 04141212144152.16015625672451 03161113123362.873046875661401 04111214123362.873046875631301 06541813138925.3359375621301 03611614184054.75631171 04241444328560.38671875611601 03311261128560.38671875651271 05411634484054.75631201 03911612184054.75671691 05711214184054.75721501 04961643223362.873046875661401 05311044123362.873046875661451 03561813133712.96875641101 03611644384054.75641451 02961823228560.38671875641471 04111611284054.75651351 04411614144152.16015625671601 05931412128560.38671875631651 03211463349430.109375671351 04611413184054.75665011 03161612184054.75651151 04011613284054.75661351 04111864244152.16015625611151 03451213119237.1953125671201 02911511284054.75611481 03911413138925.3359375631701 03211214149430.109375651301 04141612138925.3359375641251 04311411144152.16015625611401 02911311184054.75632101 03161213244152.16015625651401 04311412184054.75701701 03211614184054.75651381 06011324384054.75662071 03511614184054.75621351 05511212184054.75671631 02611233333712.96875631501 03711363184054.75665011 03711623284054.75641151 05931213123362.873046875661251 04911813184054.75591251 03411313184054.75641551 03811231233712.96875691601 03311411184054.75621601 05261843228560.38671875681501 04911214184054.75651551 03741211133712.96875691701 04711511184054.75641401 04461323184054.75655011 03861613133712.96875631801 03511744184054.75661601 02661614333712.96875611071 06011233138925.3359375641361 04711313184054.75631901 02711551184054.75661301 04511213284054.75612001 05341413149430.109375681401 03211234484054.75625011 04361211133712.96875681601 03641411149430.109375701251 03011413344152.16015625691801 03311314184054.75661321 04511612184054.75691601 03411611184054.75641151 04251813184054.75651051 04431212133712.96875631801 02511633123362.873046875721451 04211364149430.109375691301 04341454123362.873046875691301 04641224133712.96875671551 03061614123362.87304687562951 03861814484054.75701551 03451613144152.16015625651301 03541213120305.509765625661431 03341711184054.75631501 05211612144152.16015625711601 03741213128560.38671875681361 03311514149430.109375641401 03811624284054.75651501 03111511138925.3359375641201 04611421184054.75661301 03941241144152.16015625621201 02641213116081.587890625691301 03211614123362.873046875702201 04311612184054.75661501 03361613217171.263671875601251 04711843184054.75701501 03011323144152.16015625631371 02861613119237.1953125701351 04311612184054.75651221 03811514284054.75623001 05711844184054.75681601 04611413184054.75601051 04721261149430.109375681901 03611611184054.75611101 04111843484054.75661561 03311643184054.75601451 03211411184054.75631181 03311214144152.16015625621051 04111211184054.75661351 03311311184054.75641201 04911513184054.75621201 04511113138925.3359375641601 03411261184054.75681701 04611633484054.75601201 04911833284054.75631301 04811364138925.3359375601301 02811513128560.38671875611351 03851554144152.16015625661301 02861414420305.509765625661401 04211634184054.75662001 03911441184054.75671651 05141844144152.16015625671401 03911413184054.75681851 05361413349430.109375641531 02861424133712.96875611451 04141212120305.509765625631051 03461613138925.3359375661501 03211212184054.75591251 04731513249430.109375642501 06531643244152.16015625652091 04111414184054.75631451 03061611228560.38671875681501 02661513218168.841796875651601 02911612184054.75712201 02711613184054.75641201 02911621149430.109375611001 03711814184054.75641301 0326104327782.8540039063591791 03811412149430.109375701351 03511614149430.109375641351 04611643284054.75651501 04311313120305.509765625661401 03411813184054.75641101 03711414184054.75651121 04741313138925.3359375671701 04641613184054.75621101 04941811184054.75661341 02711213133712.96875601351 03811214149430.109375641251 04841411133712.96875671401 04141831149430.109375631251 02561611384054.7559951 04211812433712.96875672001 04411811184054.75661351 05941333133712.96875663001 03561613184054.75681501 05561631123362.873046875621801 03411811449430.109375631301 02711613184054.75651251 04941213123362.873046875621151 05931114128560.38671875621451 03911413133712.96875651601 05441414111953.455078125671651 05011831284054.75641291 03761613144152.16015625641181 03411513138925.3359375682201 04411812184054.75591201 02711311184054.75675011 03661611128560.38671875621141 03111213149430.109375631201 04411214112954.765625631801 02961834184054.75651151 04311612184054.75701501 02911412428560.38671875611221 03711513184054.75641381 02611711184054.75691201 04611212184054.75631801 05411313184054.75651501 03011722284054.75681351 02611811133712.96875631251 05011063123362.873046875631501 0414513233712.96875671451 04811211184054.75611651 02561412112954.765625641301 03511212184054.75611001 03611451184054.75641131 04911214184054.75645011 05611851184054.75641501 03711363138925.3359375681301 04451213133712.96875601151 04611314184054.75651381 04511621184054.75681401 04811513138925.3359375661401 04611211184054.75601801 05311841184054.75641401 04311623184054.75631151 03111213249430.109375611701 02761844138925.3359375681281 05441414133712.96875672201 03011414184054.75661851 04241464184054.75691801 04311614184054.75672501 05561722149430.109375642891 02511214233712.96875621601 04911613184054.75621251 03911334184054.75691651 0401812349430.109375651451 04111211184054.75671401 03361612133712.96875611281 02811213228560.38671875672081 05441211128560.38671875631141 03111212328560.38671875631501 05211214184054.75641101 04011313149430.109375671601 03461763128560.38671875682001 03811412184054.75671501 03311513133712.96875651401 03261613133712.96875671201 04241613144152.16015625661521 03741613123362.873046875651701 04611243184054.75661701 02661614123362.873046875681301 03261013118168.841796875621251 03711241144152.16015625701501 04141212123362.873046875641401 0276181317782.8540039063611051 02511613128560.38671875671301 05611523184054.75641751 05011814184054.75691501 05461612123362.873046875651481 02961611133712.96875681381 03041521244152.16015625671651 03851614284054.75691701 03411413138925.3359375672321 04241444238925.3359375611361 0334121118826.6513671875601221 05111622184054.75601301 03311213284054.75641501 03211222184054.75671251 05731513138925.3359375681451 03911811184054.75621851 05111211184054.75641551 03911213184054.75631721 03011311144152.16015625621131 03311613184054.75651381 04511013349430.109375601281 03861613115081.9755859375671501 04811621184054.75641601 04511654184054.75661381 05431413119237.1953125661251 02761312218168.841796875661551 04411211138925.3359375591651 05611242184054.75641601 04441324328560.38671875641751 03661211123362.873046875661201 03561611184054.75651301 03511212123362.873046875631501 05611613184054.75651201 03041312133712.96875642401 03641344120305.509765625631601 04261644423362.873046875601481 02911612484054.7560951 05411833244152.16015625631401 04711814184054.75671301 04211412144152.16015625631281 04611642184054.75631351 05811732184054.75631551 05211514144152.16015625681681 05411612184054.75661801 03641364128560.38671875601301 03061621128560.38671875671351 0285121319857.505859375651801 03061843244152.16015625631951 04911311228560.38671875651801 0365913115081.9755859375631501 03061612138925.3359375641801 03421811323362.873046875621101 04261613138925.3359375661751 04011444344152.16015625631601 04611262184054.75611351 03211612149430.109375691251 04741612133712.96875661401 02911412184054.75651301 05111114144152.16015625672101 04441614138925.3359375701901 0414141218826.6513671875632251 03811464184054.75691351 04211211144152.16015625701381 03611311144152.16015625631201 03811423184054.75641451 03021832238925.3359375681501 05511231133712.96875621241 02561632119237.1953125621401 03611813384054.75631181 03441413112954.765625631281 06011643238925.3359375641661 02611231184054.75641251 03311414144152.16015625661481 02711211184054.75681351 03111211144152.16015625681801 05441012117171.263671875621351 04061613128560.38671875641901 04411611184054.75621551 05861412123362.873046875661351 02861623149430.109375661231 03641212144152.16015625611251 03211464344152.16015625672001 03331613184054.75651301 03211612184054.75641551 04811223119237.1953125652151 03611613184054.75681551 04911263184054.75671521 03911214144152.16015625611391 04711612184054.75651451 03211614384054.75621301 03911241123362.873046875611101 06231613144152.16015625661901 02561812123362.873046875681951 02761613133712.96875671541 05141423184054.75621301 06241213128560.38671875641801 03911732184054.75611101 04211414384054.75671501 02911612184054.75631001 03811643184054.75621251 03751213184054.75631281 03211214184054.75611281 04111262120305.509765625611151 03941814128560.38671875611381 03541613144152.16015625661281 03111312184054.75621451 06031414184054.75691651 04141312184054.75621251 05711341184054.75621451 02511311149430.109375661151 03511242184054.75671351 04941613138925.3359375651351 04931313120305.509765625661351 03611654123362.873046875661181 03161711120305.509765625652501 04811643133712.96875651361 04261811184054.75661351 04411813184054.75611641 02711211138925.3359375601151 03711612184054.75671451 02561612118168.841796875671251 04111211238925.3359375671951 04441212144152.16015625661251 03811213144152.16015625631551 05811242184054.75682001 04641213123362.873046875641181 05611241144152.16015625651281 02611611184054.75611061 05211212184054.75661551 06011441184054.75631451 05541241128560.38671875651401 04661742244152.16015625661571 04011243244152.16015625641951 03761212116081.587890625692101 05911213149430.109375601151 02861813123362.873046875601151 05641214484054.75621451 03511211184054.75661501 02811412184054.75691331 03561613233712.96875671301 04911232138925.3359375681511 03411214184054.75631281 05911414184054.75631261 03511612138925.3359375661451 04711213284054.75601251 03811412133712.96875661401 03761613184054.75702001 04111312184054.75661451 03611211184054.75641301 04611242133712.96875621301 02611613184054.75671301 03511313249430.109375631601 05011334184054.75641501 03811311284054.75631201 05711843284054.75661751 04411312184054.75661401 05511844184054.75631471 04411661123362.873046875651401 03761812144152.16015625631851 05841844138925.3359375601201 04841314149430.109375651571 02541614333712.96875661701 05441214128560.38671875671621 04011413115081.9755859375625011 03111211144152.16015625611351 03311313149430.109375661651 04611333138925.3359375651301 04211331144152.16015625621201 03611813184054.75591001 04811212184054.75631981 04511623184054.75641301 03111244149430.109375641251 03211612123362.873046875681151 02611312184054.75641101 03011614184054.75671401 05051712223362.873046875681221 03411513484054.75601001 03921211344152.16015625631121 04761514133712.96875671301 03951511223362.873046875661401 02611314484054.75681401 05341634133712.96875671351 04611624184054.75641401 04811241184054.75601101 04411634423362.873046875611201 04541434128560.38671875662201 04311212184054.75651251 06231212123362.873046875651551 06211213184054.75621451 04921223144152.16015625651131 05161812123362.873046875651201 05051413144152.16015625692251 05111311184054.75661401 03661411244152.16015625641291 03261314123362.873046875611201 05341314149430.109375642001 03511614184054.75671201 04441834149430.109375671251 03811762184054.75641901 04361413223362.873046875671751 03041611123362.873046875651101 05711714123362.873046875631701 04611353184054.75641301 04711813184054.75631751 04211313184054.75621181 02511242128560.38671875671151 03711312184054.75671301 03211613149430.109375711401 06011424184054.75661901 02811714184054.75701401 04011621184054.75671601 04911212184054.75681551 06111214123362.873046875641151 02711614184054.75631291 03511213149430.109375641301 03311711184054.75651501 03311214184054.75671401 03811212184054.75631651 04661211133712.96875621651 02621553149430.109375681401 05951611133712.96875631201 03261414123362.873046875641301 03261211128560.38671875722251 04441233123362.873046875681601 06211411184054.75601351 03211213184054.75681251 02611414138925.3359375701451 05051413214021.39453125661321 03311611184054.75651251 03161213228560.38671875601601 04711464133712.96875621501 04811411133712.96875641201 03461223184054.75642301 02611411133712.96875651351 06041414123362.873046875671501 03211212144152.16015625621251 02511213144152.16015625651581 04811414184054.75605011 03011612138925.3359375641401 02711613184054.75661451 03311611384054.75621501 02561611184054.75611151 03711313184054.75635011 04031511184054.75651301 04411221184054.75655011 04241423220305.509765625662551 03941244184054.75651501 05011364449430.109375641101 04741713184054.75631161 02611613484054.75611051 03711211133712.96875681401 04041612138925.3359375701601 04511312184054.75631151 03941414123362.873046875671301 02811114184054.75651421 02511213138925.3359375651301 05341263416081.587890625682001 03511312184054.75651201 04841332216081.587890625661401 05311324184054.75611451 03711311184054.75621601 04611633349430.109375611751 03011741384054.75631401 03511512184054.75661171 03941614184054.75661401 03711614184054.75641301 02811414149430.109375651181 03611663120305.509765625671201 03041643423362.873046875671061 05861712149430.109375681851 04111612184054.75651401 03261623144152.16015625651901 04761644384054.75602501 02811313144152.16015625651151 02941612128560.38671875662101 0344121339857.505859375621381 02761312423362.873046875641101 05841653184054.75631361 04741441228560.38671875652501 03411211128560.38671875641101 02511531184054.75641651 06111661184054.75661751 02711414123362.873046875611101 04511411123362.873046875641451 05241213214021.39453125631601 04211214384054.75631351 05911613184054.75631251 04611313138925.3359375621551 04511623284054.75631401 04911654184054.75631451 02661211115081.9755859375661501 03161611138925.3359375631201 04711242184054.75641801 02741213120305.509765625691351 03841423138925.3359375641251 02961243138925.3359375691541 04411112184054.75642301 02811412184054.75641171 03411613384054.75681651 05241311138925.3359375621351 05511211133712.96875641351 05411222184054.75661681 02911611284054.75621401 03411532184054.75621281 02561611184054.75651251 03611312184054.75652401 05211223149430.109375611401 04611313184054.75641251 02811412120305.509765625651131 04161411184054.75651501 02911614384054.75621741 03811212149430.109375631101 04041854184054.75631601 06031211144152.16015625661601 02511214223362.873046875641371 04311413284054.75641301 04711534184054.75621501 04511713184054.75661221 04941712184054.75681321 04811412128560.38671875611401 05031213284054.75631601 02611813149430.109375641151 03841612133712.96875661351 04911333184054.75662001 03511413144152.16015625691401 04811333144152.16015625665011 03611812184054.75645011 04611711184054.75661581 04111712384054.75671501 04211324184054.75701551 02561614133712.96875671351 05311614184054.75681601 03111214338925.3359375631841 04611612184054.75651201 06011214184054.75651801 02661454184054.75641201 02561614149430.109375671401 02961761323362.873046875681401 03011212133712.96875641501 02741424216081.587890625601121 04111414128560.38671875651141 05311213184054.75651181 03711611184054.75621251 05041842184054.75631651
Mar 05, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here