Hello everyone,
I am trying to get estimates and 95% CI using BCa approach but not successful at it. I get the N, P and BC confidence intervals and a warning that says - "jackknife returned missing acceleration estimates. BCa confidence intervals cannot be computed." How do I correct for it and get the BCa values? Below is my code. Any guidance is highly appreciated. Thank you!
program drop calculate_sensitivity
program calculate_sensitivity, rclass
args x y
summarize `y' if `x'==1
return scalar sensitivity=r(mean)
summarize `y' if `x'==0
return scalar specificity=1-r(mean)
end
// Bootstrap sensitivity using BCa
bootstrap r(sensitivity) r(specificity) , cluster(patient_id) reps(1000) saving(cataract, replace) bca seed(2): calculate_sensitivity cataract_gold cataract_test
estat bootstrap, all
-Kamini
I am trying to get estimates and 95% CI using BCa approach but not successful at it. I get the N, P and BC confidence intervals and a warning that says - "jackknife returned missing acceleration estimates. BCa confidence intervals cannot be computed." How do I correct for it and get the BCa values? Below is my code. Any guidance is highly appreciated. Thank you!
program drop calculate_sensitivity
program calculate_sensitivity, rclass
args x y
summarize `y' if `x'==1
return scalar sensitivity=r(mean)
summarize `y' if `x'==0
return scalar specificity=1-r(mean)
end
// Bootstrap sensitivity using BCa
bootstrap r(sensitivity) r(specificity) , cluster(patient_id) reps(1000) saving(cataract, replace) bca seed(2): calculate_sensitivity cataract_gold cataract_test
estat bootstrap, all
-Kamini
Comment