Hello,
I have aggregate data for men and women in different social class categories (10 lines of data in total):
var1: proportion a
var2: sample size a
var3: proportion b
var4: sample size b
var5: proportion a - proportion b
The proportions are derived and saved from separate margins models, so they are predicted proportions adjusted for covariates. Sample a and sample b are independent.
I want to calculate confidence intervals for var5. I can do this in excel with a formula but is there a way to do this in stata?
Thank you.
I have aggregate data for men and women in different social class categories (10 lines of data in total):
var1: proportion a
var2: sample size a
var3: proportion b
var4: sample size b
var5: proportion a - proportion b
The proportions are derived and saved from separate margins models, so they are predicted proportions adjusted for covariates. Sample a and sample b are independent.
I want to calculate confidence intervals for var5. I can do this in excel with a formula but is there a way to do this in stata?
Thank you.
Comment