I have school level data with the name of different counties they have belonged to across a number of years. Each year has a column for each school, some are missing, some schools might fall into different counties.
1. I want to check how many schools have consistent counties over the year (ignoring any . (missing) values).
2. If schools have consistent counties I want to merge all these 10-15 variables into one giving me the county name if no conflict, and returning "conflict" when conflict, . if data is just missing.
Screenshot is attached.
Array
Related Posts with Extracting unique strings from multiple variables for each observation
Effect size (cohen's d) after contrast command inaHello, I am trying to calculate effect size (cohen's d) after anova using contrasts. There are two …
How to Conduct GEE analysesI have a dataset with sample size of 187. my dependent variable is depression at 3 different time po…
Factor Analyses in Panel DataDear Statalist, In my research, I am using indicators provided by Worldwide Governance Indicator (W…
Generate Date/Time VariableDear Statalist, I am writing to ask for your help with generating date/time variable, which I am st…
How to get a formated table of statistics from a stationarity test in a 40 variable loopI want to conduct a stationarity test (Fisher) for around 40 variables in my data. I have managed to…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting unique strings from multiple variables for each observation
Post a Comment