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
Delete an observation if the value of a string variable is contained in another variable.I want to delete any obervation where the value of input1 is same as that of input_toremove. I saw …
Mixed Effects Models - include cases without key independent variable?Hello, I am learning about mixed-effects models and have a question. I am analyzing within-individua…
how to keep variable x1,y1,z1 when rank =1 and keep x2,y2,z2 when rank=2 for different idsThose with same id numbers are categorized into ranks and I want to keep percentage1 com11 pet1 when…
How to format the same regressors differently for different models using Stata estout?I know that we can format different regressors (the rows of a estout table) of the same model using …
ESTTAB command for BiprobitHello everyone, I am vary familiar with using esttab with ols, however I was wondering is there a w…
Subscribe to:
Post Comments (Atom)
0 Response to egen anycount
Post a Comment