Posts

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 …

Performance of my stock vs. cpi

Intro As a new years resolution, I made a promise to myself to be more conscious about the investments that I’m making. Of the few that …

Replacing missing values in R

Problem So I’m a regular visitor of the r/rstats subreddit and recently there was a post about replacing missing values using a certain …