search for: famliy

Displaying 2 results from an estimated 2 matches for "famliy".

Did you mean: family
2009 Aug 08
1
generalized linear models
Hi, R users, I am trying to use glm to do logistic regression. I know generally when I have two covariates, say x1 and x2, then I do fit <- glm(y~x1+x2,famliy='binomial') But now my covariates form a n*p matrix, say x, so actually each column is a covariate. So I think I should do fit <- glm(y~x,family='binomial') Then I need to predict new data. How should I write the newdata? I tried several thing, all failed. The x in the fit is a m...
2006 Aug 08
0
gamm question
...station1)+s(Year,by=station2)+ s(Year,by=station3)+s(Year,by=station4)+ s(Year,by=station5)+ factor(station)*factor(month), correlation=corAR1(form=~MyTime|station), famliy=gaussian) station is just a long vector with ones, twos, threes, fours and fives. MyTime defines the order of time (and has values 1 to 240) This model fits a Year smoother on each station and, and has one auto-regressive parameter (whihc is about 0.3). How woul I allow for 5 differ...