Hello,

My code is this:

Code:
egen rm=rowmiss( var1- var10)

. 
. egen Audit=rowtotal( var1- var10) if rm==0
However, some values in the audit variable are missing because there are values missing in var1-var10. However I want it to ignore those missing values and give me the total of whatever data is there. So for example if var1 and var2 have the values 2 and 3 but the rest of the variables have missing values, I don't want the audit score for that person to be missing I want it to be 5.