Hi everyone,
I'm trying to generate a variable (r) using an implicit expression. The equation is:
(W - P + 20000)^(1-r) + (W - P)^(1-r) = 2*W^(1-r)
W and P are both existing variables in my dataset, but I'm not sure how to generate r without making it the subject of the equation. Would such a problem require the use of nl or ml?
Thanks!
Related Posts with Solving nonlinear function in Stata
Help with hurdle modelHello - i'm having some trouble running a churdle model. I have observational data (4,800 observati…
Truncate the continuous variable (0,1)Dear Stata Expert, May I seek your help in variable transformation? I need to truncate the variable…
Removing a list of string from mailing addressHi all, I have a database of mailing address that I need to do some cleaning on it. Some of the add…
Changing background colors using coefplotHello, I am trying to change the background color of my graph to white. However, Stata is not recog…
Dummy for event in prior ten yearsThis is my first post, I hope I express myself and my question in an understandable manner. I have …
Subscribe to:
Post Comments (Atom)
0 Response to Solving nonlinear function in Stata
Post a Comment