Hi there,
I have a simple question on the function of bysort.
I know that we can use it to generate sum/mean by group. Usually bysort classify groups by a variable, yet can we make it a range?
For instance if I have data on people's calorie intake by age, gender and race. How can I know the group statistics on the group (female, white, age from 20-30)?
Thank you!
I have a simple question on the function of bysort.
I know that we can use it to generate sum/mean by group. Usually bysort classify groups by a variable, yet can we make it a range?
For instance if I have data on people's calorie intake by age, gender and race. How can I know the group statistics on the group (female, white, age from 20-30)?
Thank you!
Comment