Converting Between Currencies Using priceR 2022-06-16 In this post I’ll walk through an example of how to convert between currencies. A challenge is that the conversion rate is constantly changing. If you have historical data you’ll want the conversion … priceR dplyr tidyr purrr lubridate devtools
Simulating Prediction Intervals 2021-04-05 Part 1 of my series of posts on building prediction intervals used data held-out from model training to evaluate the characteristics of prediction intervals. In this post I will use hold-out data to … workflows devtools gt ggplot forcats scales pander
Weighting Confusion Matrices by Outcomes and Observations 2020-12-08 Weighting in predictive modeling may take multiple forms and occur at different steps in the model building process. […] The focus of this post is on the last stage1. I will describe two types … ggplot dplyr rsample parsnip probably yardstick devtools purrr knitr tidyr
Gambling Where the House Almost Always Loses... but Still Wins 2020-10-28 In this post, I will describe an example of a game that produces many small wins for the player and occasional large wins for the house. Such a game could take advantage of psychological biases of … devtools econocharts
Feature Engineering with Sliding Windows and Lagged Inputs 2020-10-12 The new rsample::sliding_*() functions bring the windowing approaches used in slider to the sampling procedures used in the tidymodels framework1. These functions make evaluation of models with … httr jsonlite dplyr lubridate rsample slider devtools recipes parsnip workflows tune purrr tidyr forcats ggplot broom
Tidy Pairwise Operations 2020-06-03 In May of 2021 I co-wrote pwiser a package for doing pairwise operations in {dplyr} that provides a much smoother approach than the one I build-up to in this post. […] Say you want to map an … AmesHousing dplyr corrr tidyr stringr purrr forcats ggplot devtools weights
animatrixr & Visualizing Matrix Transformations pt. 2 2020-02-24 This post is a continuation on my post from last week on Visualizing Matrix Transformations with gganimate. Both posts are largely inspired by Grant Sanderson’s beautiful video series The Essence of … devtools dplyr animatrixr