I have a Stata program that outputs a local scalar of space-separated variable names.
I have to run the program twice on two samples (same dta
) and store the union (intersection - variable names appearing in both scalars) as a new space-separated local scalar (for input to another program).
I can't figure out how to split (per spaces) and or test the occurrences of variable names in each.