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 reccommended.

You may think that SAS can do this method using the following code. However, this is performing an unstratified miettinen-nurminen method. The output would contain the risk differences calculated for each strata seperately and then a common risk difference (however this is not a stratified approach). See SAS for more detail of SAS’s calculations and .

proc freq data = xxxx;
  tables  var1 * var2 * var3 / cmh riskdiff (common cl=mn)
run;

Online SAS macros

There are two available macros to use in SAS:

This page is a placeholder whilst further content is being developed.

To date the cytel macro has been been extensively tested by CAMIS project (please contact us if you’d like to help with this research!). However, the ratesci macro has been tested against {cicalc} and {ratesci} r packages and found to have agreement.

NOTE that: skew = FALSE option, indicates no skewness correction which gives us the miettinen-nurminen method. 

NOTE: The dataset <input_dataset> contents need to be aggregated with 1 row per strata of results.  With variables: N1, N0 for the sample size in the test and comparator groups and e1, e0 for the number of events in the test and comparator groups respectively
Eg.
strata  e1  N1  e0  N0
grp1    5   10  3   12
grp2    1   3   7   15
etc.

              
%SCORECI(DS=<input_dataset>,
         CONTRAST = RD,
         SKEW = FALSE,
         LEVEL = 0.95,
         STRATIFY = TRUE,
         OUTPUT = TRUE,
         WEIGHT = 1);