search for: chel2

Displaying 1 result from an estimated 1 matches for "chel2".

Did you mean: chel
2010 Jun 18
2
varIdent error using gam function in mgcv
...hts to variable Month I get this error returned. Error in model.frame.default(formula = Chel ~ 1 + M + YM + M + YM, weights = Vf1, : variable lengths differ (found for '(weights)') Here is the simple code I am using. library(mgcv); library(lattice) library(nlme) Vf1=varIdent(form=~M) Chel2=gam(Chel~s(M, fx=F, bs="tp")+ s(YM, fx=F, bs="tp")+s(M,YM, fx=F, bs="tp"), family=poisson(link="log"), weights=Vf1) # second GAM with interaction M=Month YM=Year Regards, Niall -- View this message in context: http://r.789695.n4.nabble.com/varIdent-error-...