How to group by and get slopes in a JSL fit model script
Hi,
I'm trying to fit data in group and get slope and R squared number. I'm using Fishing data set as an example here.
I stacked the data so that the summary will be outputted easily as one single column then I need to spread the columns again. So I did fishing_stacked = dt << Stack(
columns(
:Fish Caught,
:Live Bait,
:Fishing Poles,
:Camper,
:People,
:Children,
:Fished
),
Source L...
vince_faller