jmbejara / comp-econ-sp19

Main Course Repository for Computational Methods in Economics (Econ 21410, Spring 2019)
48 stars 26 forks source link

hw 4, q12 #37

Closed cangubur closed 5 years ago

cangubur commented 5 years ago

I do this to calculate ave_wage in part 11

Screen Shot 2019-05-04 at 3 31 27 PM

However, when I do concat in part 12 my results are slightly different than yours. Do you see a reason for the difference?

Screen Shot 2019-05-04 at 3 31 45 PM
jmbejara commented 5 years ago

@cangubur Your code is the same as mine here. I don't see any reason for a difference. It's minor enough that it shouldn't matter. I recall a lot of minor differences coming up last year because of things like differences in the order in which people dropped missing data (difference subsets of columns result in different drop criteria). I just noticed that in my code, I drop rows at a point before I drop unnecessary columns. This changes my results slightly, but they still aren't exactly like yours. I'm going to upload my new screenshots soon.

I'll make sure to ask @ariboyarsky to give full credit as long as the answers are in the right ballpark (as they are here).