Dear all,
I am trying to run a non linear estimation of beta in the following specification:
yi = ln(x1(z1)^beta + x2(z2)^beta + ... + xn(zn)^beta)
There are 400 pairs of xjand zj. It would be almost impossible to write the nl command manually.
Presumably it can be done quite easily with loops in Stata?
I am very new to this. I would be really grateful if you let me know how to loop it within the nl command in Stata, or any ways to do it.
Many thanks!
DS
Related Posts with non linear estimation with hundreds of variables
error in reshapingi have the data ----------------------- copy starting from the next line ----------------------- Co…
Using ascol command to calculate weekly returns using CRSP daily returnsI tried to convert daily stock returns to weekly returns for panel data with firm, date, and returns…
Creating a variable as a matrix of five othersHi, My dataset has variables such as province, and five other items (club church library hospital s…
Why is TFP calculated by prodest+acf+translog much bigger that TFP calculated by prodest+acf?Dear statalists: I want to use prodest to estimate TFP,but my production function is a translog-for…
Entropy BalancingHi everyone, I want to examine the effect of a treatment on an observation group with a Diff-in-Diff…
Subscribe to:
Post Comments (Atom)
0 Response to non linear estimation with hundreds of variables
Post a Comment