Re: Multiple Linear Regression--should be an easy one
- From: richardstartz@xxxxxxxxxxx
- Date: Sun, 24 Feb 2008 14:23:20 -0800
On Sun, 24 Feb 2008 21:34:07 +0000 (UTC), "Mel :)"
<buffcanadiandude@xxxxxxxxxxx> wrote:
dpb <none@xxxxxxx> wrote in message <fpslm4$jph$1@xxxxxxxx>...
Mel :) wrote:
Hello all,
I am newbie to MATLAB. I was just wondering how I would go
about doing a multiple linear regression in MATLAB. I have 3
variables- all independent. I have the three data files (the
files are quite long) in Excel and they can be easily
imported to MATLAB into arrays? What I need to do is find a
regression equation and then the goodness of fit of the
equation. Is this possible in MATLAB???
Sure... :)
help slash
I don't understand? I tried looking at the help section and
I created three variables in MATLAB x1,x2 and y and ran the
regress program. It gave me a single number as the answer
(0.221).
I want the values of a and b (y= ax1 + bx2) that minimizes
the error and then the goodness of the fit?
Thanks for the help though, anymore insight?
Begin with
[ones(length(y) x1 x2]\y
That should get you started.
-*** Startz
.
- References:
- Prev by Date: Re: Multiple Linear Regression--should be an easy one
- Next by Date: Re: Double =
- Previous by thread: Re: Multiple Linear Regression--should be an easy one
- Next by thread: remove title and label spaces
- Index(es):
Loading