Re: [R] Uniroot - error

From: peter dalgaard <pdalgd_at_gmail.com>
Date: Tue, 10 May 2011 12:10:58 +0200

On May 6, 2011, at 16:37 , Joshua Wiley wrote:

> On Fri, May 6, 2011 at 6:33 AM, CarJabo <carly_tse@hellokitty.com> wrote:

>> sorry I am not asking someone to do my homework, as I have finished all the
>> procedure. I am just wondering why this technical error occurs, so I can fix
>> it myself.

>

....
> If whatever institution you are taking this at simply gives
> assignments, grades them and penalizes for plagiarism without having
> any instructors or teachers, I recommend moving to an institution
> where classes are taught by someone who can answer questions etc. As
> Dr. Murdoc (and the posting guide) said and say, R-help is not for
> homework.

The occasional hint might slip though the iron-cladding once in a while though. In this case, learning how to use options(error=recover) might be relevant. Turn it on, let the error occur and do the post mortem. The culprit is obviously that f(2) isn't positive. Unless F has turned out all-zero or has negative elements, you need a larger value of 2, otherwise, find out why F is weird.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes_at_cbs.dk  Priv: PDalgd_at_gmail.com

______________________________________________
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.
Received on Tue 10 May 2011 - 10:13:59 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 May 2011 - 11:40:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive