I have a pretty basic mixture regression thus:
. fmm 2: regress y x1 x2, lcprob(x1)
What I would like to do is constrain the coeficient x1 across classes. I look at by e(b) matrix and find:
y: y:
1.Class# 2.Class#
c.x1 c.x1
2.0473413 1.897758
I therefore create a constraint:
. constraint 1 1.Class#c.x1 = 2.Class#c.x1
and then fit the fmm like this:
. fmm 2, constraints(1): regress y x1 x2, lcprob(x1)
But that parameter does isn't constrained and I get no error. In fact, I can't get any constraints on x1 to work. Perhaps I'm using the incorrect label. Is my constraint syntax correct?
Thanks so much
Related Posts with Constraints with fmm
F-keys in profile.doDear all, I am generating my file profile.do: Code: /*==========================================…
Interpretation of AMEs: CIs overlapping each other but not zero, can I conclude that there is an interaction?Hi all, I'm fitting a simple OLS-model including an interaction term. To interpret the interaction …
GMM Continuously Updating Estimator - convergence not achievedDear Statalists, I am using an IV framework for a collection of "h" regressions (Local projection) …
Strange macro behaviourHi guys, I am trying, with the following loop to drop some of my observations, specifically the one…
Export DTA file to sas7bdat file?Hello Stata users I'm trying to export a Stata DTA file to sas7bdat file? I have tried the export …
Subscribe to:
Post Comments (Atom)
0 Response to Constraints with fmm
Post a Comment