Displaying 1 result from an estimated 1 matches for "temp_f".
Did you mean:
temp_c
2007 Jul 02
1
gam function & time trend splines
...he relationship between daily pneumonia
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 sum...