Default for STATA is to not include missing values in the denominator. For example, in this data set of 10 individuals, 3 have missing values and the denominator is 7.
If you want to include missing values in the denominator use the [tab varname, missing] option.