Displaying 1 result from an estimated 1 matches for "totalyear".
Did you mean:
totalyears
2007 Jul 02
1
gam function & time trend splines
...a
hospitalizations and daily temperature. To mimic some
of the literature, I've been including a time-trend to
try to account for normal cyclical trends in
hospitalization. So I've been using a function that
looks something like this:
gam(pneucount ~ temp_f +
s(day,bs="cr",k=(4*totalyears)+1),
day being the enumerated day in the analysis (1-365
for a 1 year analysis).
This seems to work well enough. What troubles me is
when I think about doing an analysis focusing on
winter days using more than one year of data. If I
just delete the summer days from the dataset, the time
trend...