say I have the following variable names:
Code:
child_id_kp child_id_ka child_id_ng month_gh month_ka month_ng
Code:
gen child_id = . gen month = .
For this to work, I need Stata to
- identify prefixes that occur multiple times
- store all variables with the corresponding prefix in a local
Code:
local child_id child_id_kp child_id_ka child_id_ng local month month_gh month_ka month_ng
0 Response to Identify variables with identical prefixes
Post a Comment