Based on information contained within this thread, I am now trying to obtain adjusted relative risks using the potential outcome means obtained from the -teffects ipwra- package.
The following output is obtained from one of the Stata examples.
Commands:
Output Obtained:
My Problem:
The first two bolded numbers (0.0514829 and 0.1030977) I interpret as the probabilities of the binary outcome "low birthweight" (lbweight) after adjustment for the covariates included in the IPW and RA portions of the overall command. The third bolded number (0.0516147) is the absolute risk difference between the two groups (smoking and non-smoking).
Assuming the above interpretation is correct, then the relative risk is = .1030977 / .0514829 = 2.003, correct?
So, how can I obtain the 95% CI for this RR? Do I perform the same calculation on each side of the POmeans' 95% CIs so that:
upper limit of 95% CI = .1266373 / .0588102 = 2.153
lower limit of 95% CI = .079558 / .0441556 = 1.8018
?
If the above is true, is there any automated way to get this output from the -teffects- package?
Many thanks for any help with this.
Phil
The following output is obtained from one of the Stata examples.
Commands:
Code:
teffects ipwra (lbweight mmarried c.mage##c.mage fbaby medu, logit) /// (mbsmoke mmarried c.mage##c.mage fbaby medu, logit), pomeans teffects ipwra (lbweight mmarried c.mage##c.mage fbaby medu, logit) /// (mbsmoke mmarried c.mage##c.mage fbaby medu, logit), ate
Output Obtained:
Code:
Treatment-effects estimation Number of obs = 4,642 Estimator : inverse-probability weights Outcome model : weighted mean Treatment model: logit ------------------------------------------------------------------------------- | Robust lbweight | Coef. Std. Err. z P>|z| [95% Conf. Interval] --------------+---------------------------------------------------------------- POmeans | mbsmoke | nonsmoker | .0514829 .0037385 13.77 0.000 .0441556 .0588102 smoker | .1030977 .0120102 8.58 0.000 .079558 .1266373 ------------------------------------------------------------------------------- Treatment-effects estimation Number of obs = 4,642 Estimator : inverse-probability weights Outcome model : weighted mean Treatment model: logit ---------------------------------------------------------------------------------------- | Robust lbweight | Coef. Std. Err. z P>|z| [95% Conf. Interval] -----------------------+---------------------------------------------------------------- ATE | mbsmoke | (smoker vs nonsmoker) | .0516147 .0125786 4.10 0.000 .0269611 .0762683 -----------------------+---------------------------------------------------------------- POmean | mbsmoke | nonsmoker | .0514829 .0037385 13.77 0.000 .0441556 .0588102 ----------------------------------------------------------------------------------------
My Problem:
The first two bolded numbers (0.0514829 and 0.1030977) I interpret as the probabilities of the binary outcome "low birthweight" (lbweight) after adjustment for the covariates included in the IPW and RA portions of the overall command. The third bolded number (0.0516147) is the absolute risk difference between the two groups (smoking and non-smoking).
Assuming the above interpretation is correct, then the relative risk is = .1030977 / .0514829 = 2.003, correct?
So, how can I obtain the 95% CI for this RR? Do I perform the same calculation on each side of the POmeans' 95% CIs so that:
upper limit of 95% CI = .1266373 / .0588102 = 2.153
lower limit of 95% CI = .079558 / .0441556 = 1.8018
?
If the above is true, is there any automated way to get this output from the -teffects- package?
Many thanks for any help with this.
Phil
Comment