I tabulated in my data type of error cases by the number of children. After using sum and N along with mean in tabstat, I realized I don't want this way of mean calculation.
Code:
tabstat b_err, by( kidsnum) stat(sum N mean)
Array
Ideally, I needed the mean to be calculated of the total number of error cases which is shown by the total cases of sum. So, for example for the no children category, (144/445) instead of how it calculated here (144/818), how to adjust this?