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
Specifying both crossed and nested random effects in "mixed"I have a hierarchical design where politicians where each asked 9 randomly chosen questions from a p…
Origin Dest Airline DataDear stata users, per year quarter I've information on origin and destination for the airlines in th…
define a dummyDear all, I am asked this question. The data set is Code: * Example generated by -dataex-. To inst…
How to handle the missing values generated by tssmooth exponential in unbalanced panel dataDear all, I have an unbalanced panel dataset. Panel variable is firm_id and time variable is year. …
Using a loop with local and extended macros to generate new recoded variables, variable labels, and value labelsI am generating a series of new variables that represent recoded versions of existing variables. At …
Subscribe to:
Post Comments (Atom)
0 Response to Constrained Nonlinear Regression
Post a Comment