Sorry for the basic question.
I have a dataset with 100-variable list from v1-v100 with >10k observations. I would like to create a new column to indicate if a certain value is present for each observation and if it does, which variable this value belongs to.
For example, if the value of interest is "water", for observation #1, if "water" appears on v2, I would like to assign 2 for observation #1....
Any value appears only once in v1-v100, if any.
Thank you, everyone.
Related Posts with Identify where in variable list a certain value appears
Finding mean value of a column based on yearHi, I am a newbie with STATA and working with it for my thesis. So, I have a dataset of companies f…
Is my use of a t-test with this data appropriate?Hallo Apologies for not using dataex. I have tried and failed to install it (I used ssc install dat…
Validity and Robustness checks for Pooled/Repeated Cross-Sectional DataHi, I am trying to identify the impact of race on unemployment (due to COVID-19) from April to Decem…
VECM multiple cointegrating equation interpretationI have a problem to interpret multiple cointegrating equations. 1. As I understand I do include ce1 …
rename variables using loopsHi, I want to reshape the following wide type of data to long type. id c1 c2 c3 1 100 200 300 …
Subscribe to:
Post Comments (Atom)
0 Response to Identify where in variable list a certain value appears
Post a Comment