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.d...@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@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@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 ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ______________________________________________ R-help@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.