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?
robust standard error for IV panel regressionHi I have been running panel data random effect 2sls (G2SLS) and i want to robust to heteroskedastic…
Addition by SICHi, Can you please help with the below. I need to add values by SIC code in the below example. (sim…
count *same names*in other groups?Dear All, I find this question here. The data is Code: * Example generated by -dataex-. To install…
Interpretation of marginal effects of a continuous variableHi all, I’ve been reading about this issue and I read pretty much all related topics but I still co…
Creating a new continuous variableHi everybody, Could anyone help me out with creating a new continuous variable? My main dataset do…
Subscribe to:
Post Comments (Atom)
0 Response to Help Using CountIf Function?
Post a Comment