s=1
r=2
i=3
pbar=0.9
mu=0.5
pbar=(1-mu)/(r*g*mu+1-mu)-(r*g*mu*(1-mu))/(((r*g*mu*(1+i)+1-mu))*(r*g*mu*(1+i)+1-2*mu))
find
g
Hi. This looks like a non-linear equation for g. How would you solve it outside of R? Probably something like Newton-Raphson. There is a Newton-Raphson function (probably many packages have one) in package pracma/ See https://www.rdocumentation.org/packages/pracma/versions/1.9.9/topics/newtonRaphson
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.