How to fit different models on a dataset (the power of purrr)?
The Problem
I wanted to fit multiple models on a dataset in R, and I had no idea how to do that efficiently. So, I turned to twitter and got an amazing reply:
Like this? pic.twitter.com/uGcKpVGLbH
— Daniel Anderson (@datalorax_) April 24, 2019
Purrrfect!! Thank you Daniel.
A short screencast
I created a short tutorial to show the steps for fitting a model to multiple datasets or fitting multiple models to a single dataset: