Re: [R] Question with uniroot function

2015-04-16 Thread li li
Thank you. 2015-04-16 12:33 GMT-04:00 William Dunlap : > Use optimize() to find the minimum and feed that value into uniroot(). > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Apr 16, 2015 at 7:47 AM, li li wrote: > >> Hi Jeff, >> Thanks for the reply. I am aware that the

Re: [R] Question with uniroot function

2015-04-16 Thread William Dunlap
Use optimize() to find the minimum and feed that value into uniroot(). Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Apr 16, 2015 at 7:47 AM, li li wrote: > Hi Jeff, > Thanks for the reply. I am aware that the sign needs to be different at > the ends of the starting interval. > >An

Re: [R] Question with uniroot function

2015-04-16 Thread li li
Hi Jeff, Thanks for the reply. I am aware that the sign needs to be different at the ends of the starting interval. Another question: Is there a way to set the right end point ( (the "upper" argument in the uniroot function below) as the point where the function takes on its minimun, for exa

Re: [R] Question with uniroot function

2015-04-15 Thread Jeff Newmiller
You really need to read the help page for uniroot. The sign needs to be different at the ends of the starting interval. This is a typical limitation of numerical root finders. --- Jeff NewmillerThe

Re: [R] question with uniroot function

2011-09-04 Thread Carl Witthoft
As others will tell you: you need to provide a reproducible example. What are p1, u1, u2 ? Dear all, I have the following problem with the uniroot function. I want to find roots for the fucntion "Fp2" which is defined as below. Fz <- function(z){0.8*pnorm(z)+p1*pnorm(z-u1)+(0.2-p1)*pn

Re: [R] question with uniroot function

2011-09-03 Thread Uwe Ligges
On 03.09.2011 18:31, li li wrote: Dear all, I forgot to mention the values for the parameters in the first email. u1<- -3 u2<- 4 alpha<- 0.05 p1<- 0.15 Thank you very much. 2011/9/3 li li Dear all, I have the following problem with the uniroot function. I want to find roots fo

Re: [R] question with uniroot function

2011-09-03 Thread li li
Dear all, I forgot to mention the values for the parameters in the first email. u1 <- -3 u2 <- 4 alpha <- 0.05 p1 <- 0.15 Thank you very much. 2011/9/3 li li > Dear all, >I have the following problem with the uniroot function. I want to find > roots for the fucntion "Fp2" which is