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
Sargan test (overidentifying restrictions)Hi every one I have an inquiry about why I sometimes get Sargan score and Bessnman and Sometimes onl…
Generate distinct id for dyads in groups in long formatDear Statalist. I have a dataset of dyads in groups in long format. I need to generate a variable "…
from option - mixlogit commandHello all! I am trying to run a mixlogit with a specific restriction on the Standard Deviation of o…
Panel data regression - several dummy variables or xtreg, with more than fixed-effect variableHello, I'm trying to work out the advantages/disadvantages of using xtreg with a panel dataset, or u…
How to add names to points on a spatial graph using spmap.Dear all, I have managed to plot the spatial boundaries on the map and the locations of different p…
Subscribe to:
Post Comments (Atom)
0 Response to Constraints with fmm
Post a Comment