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
survey design and model specificationI shall be grateful for comments by Statalist members survey design and model specification with a d…
Comparing xtreg and repeated-measures ANOVAHello, This is a partial repost of a question I asked here: https://www.statalist.org/forums/for...…
IFLS Info Test Code: ================================================================================== SUMMARY I…
Generate an initial variable for a specific yearHello everyone, I have panel data with several countries countries over a specific time period. Now…
Twoway Scatter help: Change range, show labels and Bisector lineHello. I am trying to do a twoway scatter graph. The first problem i faced was that the range was no…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting unique strings from multiple variables for each observation
Post a Comment