Perform common biostatistical analyses for medical research including survival analysis, logistic regression, ROC curves, and sample size calculations.
Perform common biostatistical analyses for medical research including survival analysis (Kaplan-Meier, Cox proportional hazards), logistic and linear regression, ROC curve analysis with AUC calculation, sample size and power calculations, and diagnostic test performance metrics. The skill guides researchers through appropriate test selection, assumption checking, result interpretation, and reporting in accordance with published statistical reporting guidelines.
npx skills add Open-Medica/open-medical-skills --skill biostatistics-analyzer
Sample size calculation:
Calculate required sample size for:
Study design: Randomized controlled trial, parallel groups
Primary outcome: Proportion of patients achieving HbA1c < 7.0% at 6 months
Expected rate in control group: 35%
Expected rate in intervention group: 50%
Alpha: 0.05 (two-sided)
Power: 80%
Allocation ratio: 1:1
Expected dropout rate: 10%
Sample Size Calculation:
Method: Two-proportion z-test (chi-square test for equality of proportions)
Parameters:
- p1 (control): 0.35
- p2 (intervention): 0.50
- Absolute difference: 0.15
- Alpha: 0.05 (two-sided)
- Power: 0.80
- Allocation ratio: 1:1
Result (before dropout adjustment):
- Per group: 170 patients
- Total: 340 patients
Result (after 10% dropout adjustment):
- Per group: 189 patients
- Total: 378 patients
Reporting language: "A sample size of 170 per group (340 total) provides 80% power to detect a 15 percentage point difference in the proportion of patients achieving HbA1c <7.0% (50% vs. 35%) using a two-sided chi-square test at the 5% significance level. Accounting for an anticipated 10% dropout rate, we plan to enroll 189 patients per group (378 total)."
Sensitivity analysis: At 90% power, the required sample size increases to 227 per group (454 total, or 504 after dropout adjustment).
ROC curve analysis:
Evaluate diagnostic performance of troponin-I for acute MI diagnosis:
- AUC for troponin-I: 0.92 (95% CI: 0.89-0.95)
- AUC for CK-MB: 0.78 (95% CI: 0.73-0.83)
- Compare the two biomarkers
ROC Curve Comparison:
Biomarker AUC 95% CI Optimal Cutoff (Youden) Sensitivity Specificity Troponin-I 0.92 0.89-0.95 0.04 ng/mL 93.2% 84.6% CK-MB 0.78 0.73-0.83 5.0 ng/mL 72.1% 76.3% DeLong's test for AUC comparison:
- Difference in AUC: 0.14 (95% CI: 0.08-0.20)
- Z-statistic: 4.67
- P-value: <0.001
Interpretation: Troponin-I demonstrates significantly superior discriminative ability for acute MI diagnosis compared to CK-MB (AUC 0.92 vs. 0.78, p<0.001). At the optimal cutoff of 0.04 ng/mL, troponin-I achieves 93.2% sensitivity and 84.6% specificity.
This skill is part of Open Medical Skills, a curated marketplace of medical AI skills maintained by physicians for physicians and the healthcare industry.