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
Converting incident data to weekly ratesHi, I've got a data handling challenge that I was hoping to get some assistance with. The data I'm …
integrated time dependent area under the curveHello Is there any command in stata to calculate the integrated time dependent area under the curve…
Problem with a program that will open a dataset with a user defined list of variablesHi all, I'm creating a STATA program that will: 1. open a dataset, 2. keep a user defined list of v…
ml command with estimated coefficients (rangestat/runby?)Dear All, Given the data set Code: * Example generated by -dataex-. To install: ssc install dataex…
Merged data is incorrectDear everyone, I really hope to get your advice. I am merging two dta files using command: merge 1:…
Subscribe to:
Post Comments (Atom)
0 Response to Constraints with fmm
Post a Comment