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
Generate a new variables, with the last two numbers of another variableHi there, In my databank, I have a variable that tells me about a departure time (the variable is n…
Help needed for data cleaningHi, I am using Stata version 16 and need some help in a task. Below is an example of my dataset: …
Panel Model with Longitudinal/Cohort Data and Fixed EffectsI am working on a project using the Young Lives longitudinal dataset, a longitudinal survey of child…
Generating New Variables to Multiple Conditionshi all, I have troubles to make a stata code on generating a binary groups based on different condi…
Marginal contrasts with an interaction termHello, I'm attempting to do some post estimation on a model with an interaction term. I want to tes…
Subscribe to:
Post Comments (Atom)
0 Response to Constrained Nonlinear Regression
Post a Comment