Dear Statalist,
my question is about the differences between the 'mean' and 'proportion' command in Stata, and whether the calculation of standard errors differs between these two commands.
For example, with a survey data set, I would like to calculate the proportion of female individuals in the sample, and the gender of individuals is coded in a dummy variable (say, 'gender' with 0==male, 1==female). I could then either run:
svy: mean gender
or
svy: proportion gender
Both would give me the same point estimate of the proportion of female students in the sample. Confidence intervals differ, though. But it seems that standard errors do not.
From the Stata documentation (r.pdf, page 1684) I get that with the 'proportion' command, Stata uses a logit transformation on the estimated proportion so that endpoints of the confidence intervals lie within 0 and 1. My statistics knowledge is limited, but I think that this does not affect standard errors. Is that correct?
In addition, if standard errors do not differ, this means that hypothesis testing after estimating proportions is also not affected, right?
Thank you!
Paul
PS: I am using Stata 13.0.
my question is about the differences between the 'mean' and 'proportion' command in Stata, and whether the calculation of standard errors differs between these two commands.
For example, with a survey data set, I would like to calculate the proportion of female individuals in the sample, and the gender of individuals is coded in a dummy variable (say, 'gender' with 0==male, 1==female). I could then either run:
svy: mean gender
or
svy: proportion gender
Both would give me the same point estimate of the proportion of female students in the sample. Confidence intervals differ, though. But it seems that standard errors do not.
From the Stata documentation (r.pdf, page 1684) I get that with the 'proportion' command, Stata uses a logit transformation on the estimated proportion so that endpoints of the confidence intervals lie within 0 and 1. My statistics knowledge is limited, but I think that this does not affect standard errors. Is that correct?
In addition, if standard errors do not differ, this means that hypothesis testing after estimating proportions is also not affected, right?
Thank you!
Paul
PS: I am using Stata 13.0.
Comment