Displaying 3 results from an estimated 3 matches for "numericalis".
Did you mean:
numericals
2005 Sep 20
1
Estimate predictor contribution in GAM models
hi,
i'm using gam() function from package mgcv.
if G is my gam object, then
>SG=summary(G)
Formula:
y ~ +s(x0, k = 5) + s(x1) + s(x2, k = 3)
Parametric coefficients:
Estimate std. err. t ratio Pr(>|t|)
(Intercept) 3.462e+07 1.965e+05 176.2 < 2.22e-16
Approximate significance of smooth terms:
edf chi.sq p-value
s(x0)
2006 Jan 14
1
Different length of objects
Hello,
i got an warning message in the following code:
f<-1:100
t<-1:100
b<-100
ll2 <- function(b,f,t) {
t<-cumsum(t)
tn<-t[length(t)]
i<-seq(along=f)
s1<-(tn*exp(-b*tn)*sum(f[i]))/(1-exp(-b*tn))
s2<-sum((f[i]*(t[i]*exp(-b*t[i])-t[i-1]*exp(b*t[i-1])))/(exp(-b*t[i-1])-exp(-b*t[i])))
s1-s2
}
ll2(b,f,t)
i think, the problem here is, that t[0] doesn't
2005 Sep 23
1
Smooth terms significance in GAM models
hi,
i'm using gam() function from package mgcv with default option (edf
estimated by GCV).
>G=gam(y ~ s(x0, k = 5) + s(x1) + s(x2, k = 3))
>SG=summary(G)
Formula:
y ~ +s(x0, k = 5) + s(x1) + s(x2, k = 3)
Parametric coefficients:
Estimate std. err. t ratio Pr(>|t|)
(Intercept) 3.462e+07 1.965e+05 176.2 < 2.22e-16
Approximate significance of smooth