Dear Statalisters,
I want to get the bias corrected and accelerated bootstrap (BCa) 95% CI of the summation of two proportions. I know how to run BCa for one proportion but need to learn how to do it for the summation of two proportions. Here is my code to get BCa of one proportion:
Any help would be so appreciated
.
Thank you
I want to get the bias corrected and accelerated bootstrap (BCa) 95% CI of the summation of two proportions. I know how to run BCa for one proportion but need to learn how to do it for the summation of two proportions. Here is my code to get BCa of one proportion:
Code:
cls program drop _all { // BCa 95% CI of proportion of patient who died within 30-days { // define the "pro_bca" program program define pro_bca, rclass version 17.0 ci proportion died30in return scalar died30in_pro = r(proportion) end } { // run the "pro_bca" program in bootstrap command bootstrap pro1 = r(died30in_pro), reps (1000) bca seed(123): pro_bca estat bootstrap, all } }

Thank you
Comment