Hello,
I want to tell stata to create a variable giving a code of 0/1 based on around 200 variables containing string. If any values within those 200 variables contain F20 or F21 I want the new variable to be 1. Any advice greatly received. I want it to ignore any missing values but if all 200 values are missing I would want the new variable to give a missing value not a 0.
Related Posts with Create a variable (0/1) based on multiple variables containing string
[HELP] Merging two graphs into one?Hellow statlist- I am trying to create a graph to visually reflected the combination of data for th…
Testing linearity with a plot of standardized residualsHi forum! I have a question for you. I tried to assess the linearity assumption of my multiple linea…
massive reshape long terminated by error r(608)Hi Everyone, I was troubled by an error code r(608) when I run a "reshape long" a large size of dat…
selection test algorithmDear statalist member, I am trying to conduct a selection bias test for my analysis, but can't seem…
How do I create a cumulative index?Hello, I am trying to perform an operation which in Excel or Python would be very easy. However, I …
Subscribe to:
Post Comments (Atom)
0 Response to Create a variable (0/1) based on multiple variables containing string
Post a Comment