An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130222/b90644ce/attachment.pl>
HELP!!!
7 messages · lara sowale, David Winsemius, jim holtman +4 more
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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130222/4640cc14/attachment.pl>
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
5 days later
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
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
On 13-02-28 4:20 AM, Patrick Connolly wrote:
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.
The error=utils::recover option will invoke a browser at the time of an error, so it's very helpful when you don't know where to put the browser() calls. You should also consider using trace(), which inserts temporary browser() calls (or other code). The setBreakpoint() function constructs a call to trace() using source file information and is often an easier front end. Duncan Murdoch
|>
|> 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.