The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tikkuhirvi Tietavainen

Posts: 99
Registered: 4/22/08
Re: Multivariate multiple linear regression?
Posted: Jul 29, 2013 11:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dpb <> wrote in message <kt5tvc$f6k$>...
> 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".


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

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