Hello,

I am trying to replicate this specific table (beginning on the Percentage male line) on Stata but can't seem to get it right. For that first line, I need to calculate the percentage of high earners (highearn=1) that are male (male=1), before the increase (afchnge=0) and in Kentucky (ky=1 or mi=1). The number below that percentage is the standard error.

It is worth mentioning that I am just a student and have started using Stata recently. Maybe this is easier done in Excel, but it doesn't hurt to ask.

Thank you in advance.

Array