Clinical Trial related calculation: descriptive statistics, power and sample size calculation, power simulations, confidence interval, pharmacokinetics / pharmacodynamics parameters calculation.
Supplemental material for Redfors, Björn, et al. "The win ratio approach for composite endpoints: practical guidance based on previous experience." European Heart Journal (2020). This repo contains R functions that approximate the sample size for a two-arm clinical trial based on a composite endpoint analyzed using the Win Ratio.
R functions I made over the years to make my work easier. Includes data visualization functions in base R and functions for extracting relevant info from R model objects to make useful, informative tables.