Re: [R] gam parameter predictions --Sorry for double posting

2007-03-27 Thread Simon Wood
Looks ok to me, provided that you want averages (on log scale) taken over the the observed covariate values. If you want variances for the means you could always do something like the following... Xa <- model.matrix(~as.factor(year)-1) Xa <- t(Xa)/colSums(Xa) ## Xa%*%fitted(g1) gives required a

[R] gam parameter predictions --Sorry for double posting

2007-03-27 Thread Luis Ridao Cruz
R-help, Sorry for posting again the same question (dated 26-03-2007) but all my mails have been sent to the recycle bin without possibility of recovering and thus I don't know if anyone has answer my query. Here is the original message: I'm applying a gam model (package mgcv) to predict relativ