[R] GAM without intercept reports a huge deviance

collifu ramonf at me.com
Mon Jan 16 15:17:25 CET 2012


Hi all,

I constructed a GAM model with a linear term and two smooth terms, all of
them statistically significant but the intercept was not significant. The
adjusted r2 of this model is 0.572 and the deviance 65.3.

I decided to run the model again without intercept, so I used in R the
following instruction:
regression= gam(dependent~ +linear_independent +s(smooth_independent_1)
+s(smooth_independent_2) -1,data=D)
All the independent variables were significant. The adjusted r2 of this
model is 0.552 and the deviance increased to 99.5!

According to my knowledge, the adjusted r2 and the deviance should be more
or less the same and this is the first time that I see this hug mismatch
between r2 and deviance. What is causing this mismatch?

Thank you so much.
Ramón Filgueira



--
View this message in context: http://r.789695.n4.nabble.com/GAM-without-intercept-reports-a-huge-deviance-tp4299609p4299609.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list