Hi,

My variables' names are something like var11, var11_oth, var12, var12_oth, var13, var13_oth.etc... up to 12. All of variables ending with "_oth" are in string format; and the others are numeric values.
I want to create a new variable which is the sum of all numeric values only. My code was like:
egen=rowtotal (var*)

But it will include the string variables also.
Is there any other way of refering to numeric variables without typing one by one?

Thank you so much,

Lanna