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
Using foreach on for a subset of the dataHello, I am trying to replace missing values of ptfidelity_9_ - ptfidelity_11_ below with 0 Code: f…
What is the difference between corr() and cov() with panel data?When is it more appropriate to use cov() vs corr() for the residual structures for panel data? Exam…
Choosing between xtpoisson and xtreg for a non-poisson variableDear Forum, I have a panel dataset of US imports from 130 exporters over 48 years. I am running two…
Modifying a variableHello, I have an education variable called educ and the variable has 5 items: 1-less than high scho…
Hausman test interpretationSo today i made a Hausman test. But i am not sure how to interpret my results. Can you help me? Arra…
Subscribe to:
Post Comments (Atom)
0 Response to egen anycount
Post a Comment