Hi everyone,

I am using the command
Code:
bysort $id: egen
. The result I got containing the missing value. That is because the variable used for the [egen] has missing value. However, I would like to get the result that the missing values replace by zero value. So how can I get the result whereas the missing value replaced by 0 value when using the command
Code:
bysort $id: egen
?

Thank you a lot
Regards
Linh