Hi all,
I am trying to estimate the parameter delta using the nl command in Stata 15.1, as follows:
nl (depvar=ln(1+sum(var1/(var2^{delta})))), in(delta .05).
The command works fine, but returns a negative value. The problem is, the intuition of the model requires that delta be constrained between 0 and 1. I cannot find a way to constrain the parameter using the nl command. Does anyone have suggestions as to how I could constrain and estimate the parameter?
Note: I have altered the initial value significantly, but continue to get a negative estimate.
Best,
Adam
Related Posts with Constrained Nonlinear Regression
Collapse variables by country, category, yearHi! I have the following data (dataex below) and I just want to confirm if I am doing the right app…
How would you export ANOVA tablesforeach var in Subclass { anova ATF4Targetgenes `var' export ?????????? } Hello everyone, I have c…
Questions about pseudo-strata/psu in complex survey designHi: This is not a stata related question, so please forgive me if this is not allowed. I am dealin…
Storing the value of a variable from one observation in a local macro or scalarDear Statalist, I'm using Stata 16.0 trying to store a variable value from one observation in a loc…
Criteria to apply xtpcseHello everyone. I have a dataset with N = 178 and T =14 . Is it right to go for panel corrected stan…
Subscribe to:
Post Comments (Atom)
0 Response to Constrained Nonlinear Regression
Post a Comment