Re: [R] mgcv: relative risk from GAM with distributed lag

2022-07-22 Thread jade.shodan--- via R-help
Hi Simon, Thanks for the pointers! But I'm not sure what to do with the 'time' variable. (I don't want to make predictions for specific points in time). I coded as follows (full reproducible example at bottom of email), but get a warning and error: N <- 1000 # number of points for smooth to

Re: [R] mgcv: relative risk from GAM with distributed lag

2022-07-22 Thread Simon Wood
On 21/07/2022 15:19, jade.shodan--- via R-help wrote: Hello everyone (incl. Simon Wood?), I'm not sure that my original question (see below, including reproducible example) was as clear as it could have been. To clarify, what I would to like to get is: 1) a perspective plot of temperature x l