Posts

Matching: Propensity & Direct

Matching with {MatchIt} Many observational studies that are published try to balance the demographic and clinical characteristics that …

Bar chart with confidence intervals

Publication-ready bar chart with {ggplot2} I haven’t posted anything useful in a while so I decided to make a post that will hopefully …

Generating publication ready tables with {gtsummary} and {flextable}

Publication-ready tables with {gtsummary} and {flextable} So, I’ve been using R for a while now and I haven’t really found a good …

tidymodels vs mlr3

Comparison of packages for prediction: {tidymodels} vs. {mlr3} So I wrote a lot of prediction code for my dissertation using {caret} …

Sample Size Calculation with R Extended

Sample Size Caluclation in R… Extended! This is an extension from a post I saw here. When thinking about study designs for a trial that …

Tidy evaluation

Tidy evaluation… extended! This is an extension from a post I saw here. There are several instances when I want to be able to use …

Timeline Graph

Timeline graphs… extended! So, I was checking a few online forums and I found someone asking about replicating a timeline graph and I …

Resolving blogdown error issue

Problem: Error when compiling Hugo using ‘Academic’ template It’s been a while since I’ve updated my website and I sorta expected that …

{caret} custom function implementation

Problem: Optimal Probability Threshold It’s been a while! I’m writing this post for a couple of reasons. I don’t want to only be …

Tidy simulation!

Simulations? But… why? When I was taking classess at University of Colorado Anschutz Medical Campus, I was one of those guys that was …