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
Using GSEM to predict multinomial logit with different choice setsI am trying to build a multinomial logit model using GSEM as I want to incorporate random effects. M…
Coefficients above 1I am running a two regression analysis. One between DA and both PROT and AUFEE (DA is the dependent …
How to fit GLM models with two independent variables and two moderators?Dear Stata experts, I'm trying to test several GLM models. I have two independent variables (X and …
Loop Error When Mathematical Functions Performed on LocalI am trying to do the following: Code: local i 10 local j 20 quietly summ n local t r…
showing mean of a variable over several variable and categoryIn short: I want to plot the mean of variable Y over variable X_1 to X_9. Each variable is a dummy …
Subscribe to:
Post Comments (Atom)
0 Response to Extracting unique strings from multiple variables for each observation
Post a Comment