Page 1 of 1

Common coefficients in multivariate response models

Posted: Sat Feb 02, 2013 4:45 pm
by panorris
Dear all,

I using runmlwin to create a multivariate response model, with two dependent variables (y1 and y2 - both of which are normally distributed interval measures). In terms of explanatory variables, I wish to include constant terms for each y variable along with two further variables x1 and x2. I use the following command from within Stata to run the model

runmlwin (y1 cons x1 x2, eq(1)) (y2 cons x1 x2, eq(2)), level1(level1id: (cons, eq(1)) (cons, eq(2))) nosort nopause

This command runs successfully and appears to give separate coefficients for x1 and x2 with regards to each of the response variables (y1 and y2), equivalent to using the "add separate coefficient" option in the MLWiN GUI. Now, I would like to have a common coefficient across both y variables associated with the variable x1. Is this possible from within Stata? Does anyone have an example of the syntax?

Kind regards,

Paul

Re: Common coefficients in multivariate response models

Posted: Mon Feb 04, 2013 9:35 am
by GeorgeLeckie
Hi Paul,

From memory, the following should work. Please do confirm!

SEPARATE COEFFICIENTS

runmlwin (y1 cons x1 x2, eq(1)) (y2 cons x1 x2, eq(2)), level1(level1id: (cons, eq(1)) (cons, eq(2))) nosort nopause


COMMON COEFFICIENTS

runmlwin (y1 cons x2, eq(1)) (y2 cons x2, eq(2)) (x1, eq(1/2)), level1(level1id: (cons, eq(1)) (cons, eq(2))) nosort nopause

Best wishes

George

Re: Common coefficients in multivariate response models

Posted: Mon Feb 04, 2013 1:13 pm
by panorris
Hi George,

Many thanks for the reply. I just tried it, and it seems to run perfectly.

Best wishes,

Paul

Re: Common coefficients in multivariate response models

Posted: Mon Feb 04, 2013 1:33 pm
by GeorgeLeckie
Great news, thank you for confirming
George