Inverse function in R -
so have function: f(a,b,rho)=r
. given a
,b
, r
, find rho
. came across inverse function in r, seems when function tries find rho
, function cannot tell of a
, b
or rho
specified rho
, function cannot load given a
, b
. in addition, know rho
between 0 , 1.
a = -.7 b = 2 r <- function(rho,a,b){ # here defined long function of r # in terms of , b , rho } r_inverse=inverse(function(rho) r(rho,-.7,2),0,1) # r_value random value r_inverse(r_value)
this not work. appreciate inverse function or other alternative way find rho
given r
, a
, b
.
Comments
Post a Comment