Can someone explain this error? I do not understand it and do not know what to do.> v.glm.allmax<-glm(ALL.MAX~.,data=v.q.allmax)Error in eval(expr, envir, enclos) : numeric envir arg not of length one Thank you for your help. Thomas platform i386-pc-mingw32 arch x86 os Win32 system x86, Win32 status major 1 minor 3.1 year 2001 month 08 day 31 language R -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 12 Sep 2001, Pesl Thomas wrote:> Can someone explain this error? > I do not understand it and do not know what to do. > > > v.glm.allmax<-glm(ALL.MAX~.,data=v.q.allmax) > Error in eval(expr, envir, enclos) : numeric envir arg not of length oneWhat's v.q.allmax? My guess is that it is a matrix and not a data frame. (Perhaps we should explicitly check for that case to give a more explicit error message.) The obvious thing to do is to check that what you passed glm is what the help page says is required. BTW, since you are using a Gaussian glm, there is little (if any) reason to prefer glm to lm. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
|What's v.q.allmax? My guess is that it is a matrix and not a |data frame. This was exactly my fault, I am sorry in posting this simple question, but I was not able to find the mistake by myself. Thank you, Thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Maybe Matching Threads
- From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!
- Help with "non-integer #successes in a binomial glm"
- LM/GLM can't find weights vector from within a function (PR#13735)
- difference in using with() and the "data" argument in glm call
- Warning message: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!