Fit gam models on posterior draws
Arguments
- indata
dataframe of posterior draws. Each column is a year, each row is a posterior draw
- start_yr
numeric year at which to start model. Default is the first year available
- end_yr
numeric year at which to end model. Default is the last year available
- n_knots
number of knots used in the gam model, default is 5
- longform
TRUE/FALSE the output will be converted to a longform tibble with columns draw, year, proj_y. Default = TRUE