Confidence Intervals - proportions for stratified designs
Introduction
As documented here, there is requirement to use methods other than the wald method, for CI’s for proportions. In certain cases, for example, when you have a baseline imbalance of stratification factors, the stratified Miettinen-Nurminen 1985 method is recommended.
Packages
There are two identified R packages that can do this:
There are two available macros to use in SAS:
This page is a placeholder whilst further content is being developed. See the individual R and SAS pages for guidance on using each macro. Note that SAS Proc freq should not be used for stratified Miettinen-Nurminen 1985 method, as it’s actually performing an unstratified approach.
Generally, the 4 methods agreed. The scoreci macro calculates the confidence intervals iteratively using MLE, however, the PharmaSUG paper’s method calculates confidence intervals using weighted difference of rates. When the sample size within strata were small this led to small numeric discrepancies.
cicalc in R vs scoreci sas macro reached agreement in the examples tested.