### constraint in MVML model

Posted:

**Mon Oct 19, 2020 8:19 pm**H Chris, George and all listers,

I am playing constraint for MVML model but the following code not working.

use "http://www.bristol.ac.uk/cmm/media/runmlwin/gcsemv1.dta", clear

constraint drop _all

constraint define 1 [RP1]var(cons_1) = var(cons_2) // equal level 1 variance for both Y variable

constraint define 2 _b(female_1)=_b(female_2) // equal coefficient across equation

runmlwin (written cons female, eq(1)) (csework cons female, eq(2)), ///

level2(school: (cons, eq(1)) (cons, eq(2))) ///

level1(student: (cons, eq(1)) (cons, eq(2))) constraint 1/2 nopause

option constraint incorrectly specified

I know how to set parameters equal if using MLwiN test and interval. any help here please? thanks.

I am playing constraint for MVML model but the following code not working.

use "http://www.bristol.ac.uk/cmm/media/runmlwin/gcsemv1.dta", clear

constraint drop _all

constraint define 1 [RP1]var(cons_1) = var(cons_2) // equal level 1 variance for both Y variable

constraint define 2 _b(female_1)=_b(female_2) // equal coefficient across equation

runmlwin (written cons female, eq(1)) (csework cons female, eq(2)), ///

level2(school: (cons, eq(1)) (cons, eq(2))) ///

level1(student: (cons, eq(1)) (cons, eq(2))) constraint 1/2 nopause

option constraint incorrectly specified

I know how to set parameters equal if using MLwiN test and interval. any help here please? thanks.