Hello,
I am trying to solve X from the following nonlinear equation using a dataset of parameters--a, b, c.
a+ (b-x)/(1+x)^2 + (c-x)/x*(1+x)^11=0
I also want to save the solution(s) which is a positive real number to a dataset.
*Example parameter dataset: ABC
clear
input a b c
1.1 1.2 1.4
2.1 2.3 2.7
1.5 2.1 2.5
1.6 2.2 1.9
end
I wonder how to do it in STATA. Thanks in advance.
I am trying to solve X from the following nonlinear equation using a dataset of parameters--a, b, c.
a+ (b-x)/(1+x)^2 + (c-x)/x*(1+x)^11=0
I also want to save the solution(s) which is a positive real number to a dataset.
*Example parameter dataset: ABC
clear
input a b c
1.1 1.2 1.4
2.1 2.3 2.7
1.5 2.1 2.5
1.6 2.2 1.9
end
I wonder how to do it in STATA. Thanks in advance.
Comment