Error in r for gls on corAR1-not unique -


does know how solve problem error:

library(nlme) gls(number.of.fish~julian.date+temperature+size.class,na.action=na.omit,data=mydata,correlation=corar1(form=~julian.date))  error in initialize.corar1(x[[1l]], ...) :    covariate must have unique values within groups "corar1" objects 

you have 2 or more samples taken on same julian.date , can't have in corar1() corstruct() object.

how solve depend upon sampling design. these values 2 different sites? if site should in corar1():

corar1(form ~ julian.date | site) 

beyond that, struggling envision equally-spaced observations in time 2 sample occurring on same day.

if response count, might want think again using gls(), using model discrete count data instead.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -