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
Difficulties in running xtabond2 command in stata v16Dear all, I just installed stata 16 IC and subsequently installed xtabond2 command. However, I often…
Running ANCOVA with model assumptions testing across multiple random samplesI would be most grateful if you could advise me on the availability of pre-existing code that will a…
Getting precision weighted estimates using melogitHello Statausers, I have a two-level logit model where I have used group centered variables along w…
Graphing a t-distributionI'd like to draw a t-distribution with mean 2, std deviation .2 and 14 degrees of freedom. Previous…
How to interpret sigma_u (between subject) and sigma_e (within subject) in Fixed-effects modelDear all, I'm running a fixed-effects model and need help interpreting sigma_u (between subject) an…
Subscribe to:
Post Comments (Atom)
0 Response to Constraints with fmm
Post a Comment