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
country specific time trends, multicolinearity and degrees of freedomHello, I am running regressions on fertility rates on yearly data for T = 15 and 34 countries. Durin…
Identify observations in >1 variableHello, I wonder if anyone could help with the following: I have 2 variables with unique identifica…
Splitting commandHe Everyone, Hope the dataex command is used correctly here! I need to split the county name. I on…
String variable in Do-fileNoob question: I need to use a string variable in the name of other variables. I thought of somethi…
Dividing the dataset into tertilesDear Statalist members, My actual dataset is large so i am posting an example here. Code: * Exam…
Subscribe to:
Post Comments (Atom)
0 Response to Solving nonlinear function in Stata
Post a Comment