Uniroot solution in R

前端 未结 2 1238
攒了一身酷
攒了一身酷 2020-11-30 12:44

I would like to find the root of the following function:

       x=0.5
       f <- function(y) ((1-pbeta(1-exp(-0.002926543
        *( 107.2592+y)^1.082618         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 13:29

    Try using a small interval but allow uniroot() to extend the interval:

    uniroot(f, lower=0, upper=1, extendInt = "yes")$root
    [1] -102.9519
    

提交回复
热议问题