Presenting results from an arbitrary number of models
The combination of tidyr::nest()
and purrr:map()
can be used to
easily fit the same model to different subsets of a single dataframe.
There are many
tutorials
available to help guide you
through this process. There are substantially fewer (none I’ve been able
to find) that show you how to use these two functions to fit the same
model to different features from your dataframe.