# use the ACS_CC dataset included in the package
y = ciccr::ACS_CC$topincome
t = ciccr::ACS_CC$baplus
x = ciccr::ACS_CC$age
# use 'case' to condition on the distribution of covariates given y = 1
results = avg_RR_logit(y, t, x, 'case')
Run the code above in your browser using DataLab