I'm currently using nonlinear least squares to estimate parameters for a function, but I'm getting an error that says starting values invalid or some RHS variables have missing values. Can someone explain what exactly this means?
The code I'm using is as follows: nl ((var3) = ({b0}(var1)^({b1}) + (1-{b0})(var2)^({b1}))^(1/{b1}))
I thought that perhaps I need to add initial values, so I used the initial option as follows: initial(b0 1 b1 0.1), but that doesn't seem to solve my problem. It is true that some values for var2 are missing. Is there an option so that the estimation skips observations that have a missing value for var2?
I'm very new to using Stata, so thanks for the help!
The code I'm using is as follows: nl ((var3) = ({b0}(var1)^({b1}) + (1-{b0})(var2)^({b1}))^(1/{b1}))
I thought that perhaps I need to add initial values, so I used the initial option as follows: initial(b0 1 b1 0.1), but that doesn't seem to solve my problem. It is true that some values for var2 are missing. Is there an option so that the estimation skips observations that have a missing value for var2?
I'm very new to using Stata, so thanks for the help!
Comment