PSIAIMS / CAMIS

https://psiaims.github.io/CAMIS/
Apache License 2.0
55 stars 51 forks source link

Add in how to do matched pair 95% CIs in R #322

Open DrLynTaylor opened 1 day ago

DrLynTaylor commented 1 day ago

https://github.com/PSIAIMS/CAMIS/blob/cd5cb5016435bf7ea384b17ebdd9221b680083a1/R/ci_for_prop.qmd#L173-L177 This section needs more investigation. Ideally, we need to find what packages can do the 4 methods : Mantel-Haenszel confidence limits, Score (Miettinen-Nurminen) CIs and Stratified Newcombe CIs (constructed from stratified Wilson Score CIs) and normal approximation. See SAS shown here for matched pairs: https://psiaims.github.io/CAMIS/SAS/ci_for_prop.html Do results match SAS? SAS doesn't appear to be able to do the normal approximation which seems very odd? Are these 4 methods available in R and do the results for 3 of them match SAS?