I'm tabulating some descriptive statistics by country with tabstat, using something like
It seems that when the if condition is not met for a given country, then the matrix of sums is shortened, eliminating the entry for that country. What I need is to keep the country and put a zero in the corresponding row of the sum matrix. Is it possible?
Code:
tabstat money_var if condition_var == X, by(country) stat(sum)