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
How to count a variable based on an if conditionHello everyone, I have a big doubt about this counting issue: Array Let's suppose we have to coun…
name of variable above ttest tableDear all Am running a ttest for several variable by(group) using a loop as below Code: foreach …
Panel ARDL (PMG, MG, DFE) do fileHello All, I was wondering if you could help me with the do file for Panel ARDL (PMG, MG, DFE) I ne…
propensity score matching modelThis time I will try to make my request a bit clear. I have watched many tutorial videos about PSM m…
Difficulty with for loop with a conditional by() statementHello, I am working with a data-set with analyst forecasts for certain firms, in a certain period. …
Subscribe to:
Post Comments (Atom)
0 Response to Comparing population and sample age and sex distribution
Post a Comment