search for: fitgam

Displaying 1 result from an estimated 1 matches for "fitgam".

Did you mean: figa
2010 May 24
1
finding the best cubic spline fitting
...and also extrapolate beyond 2008. Data from 1900 to 1948 are very unreliable while data from 1948 to 2008 are reliable. I would like to have a higher weight for data between 1948 to 2008. I am not sure how to do this. When I smooth data from 1948 to 2008 I get sensible results for residual plots. fitgam=gam(mortality~te(age,year, bs="cs")) summary(fitgam) gam.check(fitgam However, if I smooth all the data 1900 to 1948 I get wierd residual plots. I have tried putting in knots i.e. fitgam=gam(logit_temp~te(age,year, bs="cs"), knot=list(years = c(1910,1920,1948,1958,1968,1978,198...