logistic.rr: Estimate a relative risk from a logistic regression model
Description
Estimate of relative risk and confidence interval against the reference population of the logistic regression model. This is simply the odds ratio, which approximates the relative risk when the outcome of study is rare.
Usage
logistic.rr(C,fit,alpha=.05,sig=4)
Arguments
C
vector of covariate values for the group being compared to the reference population
fit
glm object for logistic regression
alpha
numeric value to specify the 100(1-alpha)% confidence interval for the risk difference
sig
numeric number of significant digits for reported estimate
Value
For the relative risk of the group against the reference population, returns a list of est, lower, upper and CI.