Dear Statalist contributors,
I am trying to estimate a system of seemingly unrelated labor supplies for couples (called eq1 for women and eq2 for men) with the sureg command in Stata 13 for Windows.
When I add a linear constraint, the estimation by sureg works. However, I need to impose a non-linear constraint on four coefficients but as soon as I add this, I get the following error message:
"note: constraint number 1 caused error r(131)".
I am able to test the constraint expost with the command testnl, but I need to impose it in my estimation.
Hence, I would really appreciate if anyone could share how to introduce non-linear constraint in a sureg estimation.
Below, you can find a reproducible example:
sysuse auto.dta
constraint 1 [Eq1]mpg*[Eq2]headroom = [Eq1]headroom*[Eq2]length
sureg (Eq1: price = mpg trunk weight rep78 headroom)///
(Eq2 : price = headroom length), ///
corr constraint(1)
(note: constraint number 1 caused error r(131))
(note: constraint number 1 caused error r(131))
Related Posts with Non-linear constraint in a SURE estimation
create a dummy pair of countriesHi, how can I create a dummy variable for each Partner if my observations are pairs of countries li…
Matching variables from two columnsHi, everyone! I have two columns with dummy variables, each '0' and '1'. And I want to merge these …
Network meta-analysisHello. I have the following data set. I get the 'variables study_id treatment do not uniquely identi…
Panel data set with spaced time periodsHello Statalist, I am currently analyzing a panel data set of 45 firms across 3 years. However, the…
merging panel data - merge or joinby?hello! I am looking to merge two datasets to end with coherent district-level daily dataset from 200…
Subscribe to:
Post Comments (Atom)
0 Response to Non-linear constraint in a SURE estimation
Post a Comment