Hi,
I have a question regarding collapse(sum) command in STATA. Is it okay if I have three observations falling in the same category say "a" such as: 6, . , 3 and collapse(sum) gives as a result 9? Hence, it treats the missing value as 0 in adding them up.
I was thinking would it more appropriate if it adds the 6 and 3 but it also leaves the missing value not added like:
a 9
a .
If yes, do you know how could this be done?
Thanks and sorry in advance if my question is not structured properly and is not clear enough
I have a question regarding collapse(sum) command in STATA. Is it okay if I have three observations falling in the same category say "a" such as: 6, . , 3 and collapse(sum) gives as a result 9? Hence, it treats the missing value as 0 in adding them up.
I was thinking would it more appropriate if it adds the 6 and 3 but it also leaves the missing value not added like:
a 9
a .
If yes, do you know how could this be done?
Thanks and sorry in advance if my question is not structured properly and is not clear enough

Comment