Displaying 3 results from an estimated 3 matches for "avetemp".
2011 Oct 13
3
Question about GAMs
hi! I hope all of you can help me this question
for example GAMs:
ozonea<-gam(newozone~
pressure+maxtemp+s(avetemp,bs="cr")+s(ratio,bs="cr"),family=gaussian
(link=log),groupA,methods=REML)
formula(ozonea)
newozone ~ pressure + maxtemp + s(avetemp, bs = "cr") + s(ratio,bs = "cr")
#formula of gams
coef(ozonea) # extract the coefficient of GAMs
(Intercept) pressure...
2003 May 08
2
Forward Stepwise regression with stepAIC and step
...11 743720.8 193.6655
2 - rubbish 1 76.67448 12 743797.5 191.6673
However if I run
wateruse.lm.forward<-stepAIC(wateruse.lm,trace=FALSE,direction="forward")
wateruse.lm.forward$anova gives
Stepwise Model Path
Analysis of Deviance Table
Initial Model:
waterusage ~ avetemp + product + days + payroll + rubbish
Final Model:
waterusage ~ avetemp + product + days + payroll + rubbish
Step Df Deviance Resid. Df Resid. Dev AIC
1 NA NA 11 743720.8 193.6655
In other words no forward procedure has been run (similar results apply
if I use directi...
2011 Oct 04
2
About stepwise regression problem
First of all, I have GAMs
noxd<-gam(newNOX~pressure+maxtemp+s(avetemp,bs="cr")+s(mintemp,bs="cr")+s(RH,bs="cr")+s(solar,bs="cr")+s(windspeed,bs="cr")+s(transport,bs="cr"),family=gaussian
(link=log),groupD,methods=REML)
Then I type " summary(noxd)". and show
Family: gaussian
Link function: log...