To estimate the RERI and CIs in #6-7 of this week's homework, you may find it useful to use the Delta method (see attached or file posted on Week #9).
To estimate the covariance matrix in Stata, use the command estat vce after running your logistic regression model.