I am sorry to bug you, I am having this error whenever I want to run random effects regression in software R: Error in if (sigma2$id < 0) stop(paste("the estimated variance of the", : missing value where TRUE/FALSE needed. Please help me look into it. [[alternative HTML version deleted]]
On Feb 22, 2013, at 11:02 AM, lara sowale wrote:> I am sorry to bug you, I am having this error whenever I want to run > random effects regression in software R: Error in if (sigma2$id < 0) > stop(paste("the estimated variance of the", : > missing value where TRUE/FALSE needed. > > Please help me look into it.Please read the Posting Guide and after doing so repost with a question that admits of some possiblity of answering.> [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^> and provide commented, minimal, self-contained, reproducible code.Yes, and that, too. -- David Winsemius Alameda, CA, USA
Run with: options(error=utils::recover) Then at the point of the error you will be able to examine sigma2$id which is probably not a numeric. Any time you get an error like this, if you have been using the above statement in your script (which I always have turned on), you will be able to discover for yourself most of your bugs. Debugging is an important talent to learn if you are going to be writing programs/scripts. On Fri, Feb 22, 2013 at 2:02 PM, lara sowale <lara.dupe at gmail.com> wrote:> I am sorry to bug you, I am having this error whenever I want to run > random effects regression in software R: Error in if (sigma2$id < 0) > stop(paste("the estimated variance of the", : > missing value where TRUE/FALSE needed. > > Please help me look into it. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it.
David Winsemius <dwinsemius <at> comcast.net> writes:> On Feb 22, 2013, at 11:02 AM, lara sowale wrote: > > > I am sorry to bug you, I am having this error whenever I want to run > > random effects regression in software R: Error in if (sigma2$id < 0) > > stop(paste("the estimated variance of the", : > > missing value where TRUE/FALSE needed. > > > > Please help me look into it. > > Please read the Posting Guide and after doing so repost with > a question that admits of some possiblity of answering.In case you need the URL: http://www.r-project.org/posting-guide.html Some google-detection (searching for "if sigma2$id error") suggests that the OP is using the ercomp package, but beyond that the question is still (as you suggest) unanswerable. Ben Bolker
On Fri, 22-Feb-2013 at 02:23PM -0500, jim holtman wrote: |> Run with: |> |> options(error=utils::recover) |> |> Then at the point of the error you will be able to examine sigma2$id |> which is probably not a numeric. Any time you get an error like this, |> if you have been using the above statement in your script (which I |> always have turned on), you will be able to discover for yourself most |> of your bugs. Debugging is an important talent to learn if you are |> going to be writing programs/scripts. Does that have advantages of using a browser() line or two? I find them indispensable. |> |> On Fri, Feb 22, 2013 at 2:02 PM, lara sowale <lara.dupe at gmail.com> wrote: |> > I am sorry to bug you, I am having this error whenever I want to run |> > random effects regression in software R: Error in if (sigma2$id < 0) |> > stop(paste("the estimated variance of the", : |> > missing value where TRUE/FALSE needed. |> > |> > Please help me look into it. |> > |> > [[alternative HTML version deleted]] |> > |> > ______________________________________________ |> > R-help at r-project.org mailing list |> > https://stat.ethz.ch/mailman/listinfo/r-help |> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html |> > and provide commented, minimal, self-contained, reproducible code. |> |> |> |> -- |> Jim Holtman |> Data Munger Guru |> |> What is the problem that you are trying to solve? |> Tell me what you want to do, not how you want to do it. |> |> ______________________________________________ |> R-help at r-project.org mailing list |> https://stat.ethz.ch/mailman/listinfo/r-help |> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html |> and provide commented, minimal, self-contained, reproducible code. -- ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ___ Patrick Connolly {~._.~} Great minds discuss ideas _( Y )_ Average minds discuss events (:_~*~_:) Small minds discuss people (_)-(_) ..... Eleanor Roosevelt ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.