Hi i would like to take a random sample from my dataset, however I have
gender === 1 ///male 200,000 observations
gender == 0 ///female 5,000 observations
Is there a way that if I take a random sample I would have fair representation of male & female ?
what I don't want is stata to remove all the females for eg
gender === 1 ///male 200,000 observations
gender == 0 ///female 5,000 observations
Is there a way that if I take a random sample I would have fair representation of male & female ?
what I don't want is stata to remove all the females for eg
Code:
sample 20,500
Comment