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!
0 Response to Solving nonlinear function in Stata
Post a Comment