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
Three-year average of a variableHello all, I want to create a variable which is defined as the annual decile rankings of the three-y…
Stop Stata from processing current commandAfter starting a lengthy regression, I realized a mistake. How do I tell Stata to stop doing what i…
Creating a variable that counts how many months since you started receiving a 1 for a certain variableHi, I have code set up in the following way (below). I have three important variables, mci= an id f…
Using a global within regress Code: global wc_mvp = 10 regress percent_funded novelty_score if wc > $wc_mvp returns invali…
Crude incidence rate stratified by calendar yearI have estimated the overall crude incidence rate of diabetes in people with hypertension (the study…
Subscribe to:
Post Comments (Atom)
0 Response to Solving nonlinear function in Stata
Post a Comment