Is there a way to sum multiple variables just using the prefix? In other words, id like to tell stata to sum all the variables that share the same prefix.
For example, I have variables called "recid_charges_prop1.....recid_charges_prop15)
I didn't see anything when browsing through the egen help file.
Of course, they are not in order in the data set.
For example, I have variables called "recid_charges_prop1.....recid_charges_prop15)
I didn't see anything when browsing through the egen help file.
Of course, they are not in order in the data set.
Comment