I have five variables that all take on values 0, 1, or 2. I want to create a new variable that equals 1 if the five variables only take on values 0 or 1, excluding 2. What would that look like?
Related Posts with egen anycount
Insufficient observations when running panel dataHello all, I have a question I am trying to run a linear probability model with the following comman…
Different result count and tabulate commands, why?Hello, I have a question, maybe a bit basic, but I did not find the solution yet. I used the 'count…
No observations - Portfolio SortsHello everyone, I have double-sorted my data and dropped observations to include only one observati…
Difference between survival rates at specific time point with respective confidence intervalsDear Statalist, I am interested in calculating the difference between the survival rates of two grou…
Create an HHI index at quarterly-yearly and yearly level Code: * Example generated by -dataex-. To install: ssc install dataex clear input int year byte qu…
Subscribe to:
Post Comments (Atom)
0 Response to egen anycount
Post a Comment