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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -