Dear all,
I am using Stata 16, on mac. I have taken a snapshot on the panel dataset I am working with.
I used the following code:
generate mlda_21 = 0 if mlda<21
replace mlda_21 = 1 if mlda==21
to create the dummy variable mlda_21 which equals 0 if the minimum drinking age is less than 21 and equals 1 if the minimum drinking age is = to 21
I want to see how many states have a mlda of 21 for the year 1982. I was thinking of using the CountIf function?
Thank you in advance for your help
Jason Browen
Array Array Array
Related Posts with Help Using CountIf Function?
Interpreting coefficients (percentage vs percentage points)I was reading a paper that ran a difference-in-differences regression and the coefficient value was …
How can I get several variables' mean values at the smaeI want to create a vector containing several variables' mean values. But the summarize command only …
A conceptual question about when should I add fixed effect and cluster the fixed effect?Suppose I add a time-fixed effect to a panel data regression that I want to estimate using OLS. My q…
Interpreting coefficients (percentage points vs percentage)I was reading a paper that ran a difference-in-differences regression and the coefficient value was …
Date values are differentHello, I have values for the dates given in LB21B. I used the code egen LB21B_12=convertCMC(LB21B) w…
Subscribe to:
Post Comments (Atom)
0 Response to Help Using CountIf Function?
Post a Comment