Karen Moore
2011-Feb-03 11:47 UTC
[R] Error message: number of items to replace is not a multiple of replacement length
*Warning messages: *appear after dredging global model in MMI and requesting model selection table dd(global model)<-dredge(global model) - runs OK dd(global model) * 1: In x[i] <- value[[j]] : number of items to replace is not a multiple of replacement length* Also at model averaging stage I get this warning top.models4_global model<-get.models(ddglobal model, subset = delta <= 4, method="REML") - runs OK model.avg(top.models4_global model) *Warning message:** In m.resp[-1] == m.resp[[1]] : longer object length is not a multiple of shorter object length * I've checked length() names() str() of data - everything looks OK. I have no missing values. e.g of data from str() below: 'data.frame': 51 obs. of 5 variables: $ BRYOSR : num 7 13 10 3 13 8 4 4 7 10 ... $ CANCOV : num 16.7 36.7 78.4 20 81.7 93.4 43.4 88.4 30 81.7 ... $ SRTTOTCWD : num 0 0 0.4 0 0 0.1 0 0.3 0 0.3 ... $ WELLN : num 3.3 2.4 3.9 3.4 3.6 4.8 4.8 4.6 4.5 3.9 ... $ SiteDISTWOOD: num 800 1001 100 400 1001 ... Model I'm running is GAM with only one smoother on a continous variable (that has non linear relationship with response and 2 interactions and is Poisson distributed (response is count data). Can someone please suggest what else this may be indicating about my data. Thanks, Karen [[alternative HTML version deleted]]