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
How to reshape this data to panel data?Dear all,How to reshape the data below to panel data? clear input double(year FDI_beijing FDI_tianj…
Calculate conditional holding period returnHi everyone, I want to calculate the holding period return for the buy strategies (buy50 ==1) and s…
Posthoc testing after ANOVADear Statalist team, I am interested in doing Posthoc testing after ANOVA. I only have aggregate d…
ATUS WB 2013 file syntax errorHi all, I am trying to use the ATUS (American Time Use Survey) Well-being dataset. The ATUS site pr…
Incorrect Stata Error Message for xtdidregressWhen I estimate Code: import delim "https://raw.githubusercontent.com/SucreRouge/synth_control/mast…
Subscribe to:
Post Comments (Atom)
0 Response to Solving nonlinear function in Stata
Post a Comment