Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Multivariate multiple linear regression?
Replies: 4   Last Post: Jul 30, 2013 7:53 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Tikkuhirvi Tietavainen Posts: 99 Registered: 4/22/08
Re: Multivariate multiple linear regression?
Posted: Jul 29, 2013 11:10 AM
 Plain Text Reply

dpb <none@non.net> wrote in message <kt5tvc\$f6k\$1@speranza.aioe.org>...
> On 7/29/2013 9:00 AM, Aino wrote:
> > Hi,
> >
> > how can i do multivariate multiple linear regression with Matlab? I have
> > four dependent (four Ys) and four independent (four Xs) variables. I
> > believe that regress can do multiple regression (several Xs, one Y), and
> > mvregress can do multivariate regression (several Ys, one X), but these
> > doesn't help me much.

>
> My reading of
>
> doc mvgress
>
> leads me to believe your second categorization (mult-Y, 1-X) is in
> error. Read it again more carefully. I've not used it, but surely
> looks to me like it'll handle it if you set the X/Y up correctly.
>
> Failing that, you can always write the design matrix explicitly and use
> backslash to solve the OLS equations assuming your design is
> non-singular and of sufficient rank.
>
> --
>

Thank you for your quick reply! I read the instruction more carefully and you seem to be right, mvregress can do multivariate multiple regression. However, I still need to figure out how to construct the "design matrix".

-Aino

Date Subject Author
7/29/13 Tikkuhirvi Tietavainen
7/29/13 dpb
7/29/13 Tikkuhirvi Tietavainen
7/29/13 dpb
7/30/13 Tikkuhirvi Tietavainen

© The Math Forum at NCTM 1994-2018. All Rights Reserved.