Hi all,
I am not so sure if my logic for the code is right or wrong. I have to check if the age and sex distribution of the participants in the sample is similar to those not in the sample.
What I did is as follows:
use xxx_data, clear
sample 100, count
count
Sample
su age, detail
su sex, detail
Population
use xxx_data, clear
su age, detail
su sex, detail
Is this the right way to approach or did I make a mistake along the way?
Related Posts with Comparing population and sample age and sex distribution
Unable to scroll up to see the beginning of the results.Hello All, In recent times I facing a unique problem in my Stata. Whenever I am using the tab of th…
'Wrong' sign with fixed effectsHi there, I was hoping to get help regarding a change is signs of a coefficient when using fixed ef…
Calculating distance for intensity analysis using DiDHello, I am currently trying to calculate distance between conflicts and population clusters. I wou…
Exporting variable values rather than labelsHello I intend to use a dataset multiple times. After encoding all my string variables, I exported …
Unbalanced Panel data to balanced panel data for 5 YearsDear All I have an unbalanced panel data from year 2006 to year 2018. There are firms with data as …
Subscribe to:
Post Comments (Atom)
0 Response to Comparing population and sample age and sex distribution
Post a Comment