Close

Menu

  • Home
  • About
  • Twitter
  • Subscribe
Home Menu

tidyr

Posts: 1
Page 1 of 1

Fitting linear regression models on nested data with purrr

Kaylin Pavlik on R, purrr, lm, linear regression, tidyr | 28 Jan 2021

If you have a dataset you'd like to break into chunks and fit a model for each chunk, and you don't want to copy pasta the same code over and over, or use a clunky for loop, read on. You can do it in less than 10 lines of code…

Page 1 of 1
Theme Attila by zutrinken Published with Ghost