Re: [R] Regression equation with a spline in gam (mgcv)

2012-06-21 Thread Simon Wood
Please see help("mgcv-FAQ") number 2 best, simon On 06/19/2012 05:27 PM, Stefano Sofia wrote: Given model1<- gam(Y ~ X1, family=poisson) (which is a glm), the regression equation is Log(Y) = 2.132 + 0.00044 X1 In fact from summary(model1), I read summary(model1) Family: poisson Link funct

[R] Regression equation with a spline in gam (mgcv)

2012-06-19 Thread Stefano Sofia
Given model1 <- gam(Y ~ X1, family=poisson) (which is a glm), the regression equation is Log(Y) = 2.132 + 0.00044 X1 In fact from summary(model1), I read > summary(model1) Family: poisson Link function: log ... Parametric coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept)