Hello,
I am new to Stata and am working with the Canadian SLID data, based on the Census data. I performed all my calculations in Excel as Stata for Mac was not available at my University until very recently. I would like to double-check my results with Stata.
I am using an income variable that I want to sort in order to find the median value. Is there a built-in command to do that in Stata?
In addition, my dataset covers the 10 Canadian provinces. Is there a way to perform a "filter&sort"?
1) Filter the data pertaining to a given province (e.g. #1) (for example, filtering the data that have "1" in the Province column )
2) Finding the median income for that province
Thanks in advance for your help.
Francois
I am new to Stata and am working with the Canadian SLID data, based on the Census data. I performed all my calculations in Excel as Stata for Mac was not available at my University until very recently. I would like to double-check my results with Stata.
I am using an income variable that I want to sort in order to find the median value. Is there a built-in command to do that in Stata?
In addition, my dataset covers the 10 Canadian provinces. Is there a way to perform a "filter&sort"?
1) Filter the data pertaining to a given province (e.g. #1) (for example, filtering the data that have "1" in the Province column )
2) Finding the median income for that province
Thanks in advance for your help.
Francois
Comment