From: Li on
I am trying to get linear regression of 10,000 sets of data by using polyfit. Anyone call tell me how to estimate the R square (or R^2)?

Thank you.
From: Bruce Bowler on
On Mon, 03 May 2010 19:19:24 +0000, Li set fingers to keyboard and typed:

> I am trying to get linear regression of 10,000 sets of data by using
> polyfit. Anyone call tell me how to estimate the R square (or R^2)?
>
> Thank you.

help regress (with 5 outputs)


--
+-------------------+---------------------------------------------------+

Bruce Bowler | The smallest deed is better than the grandest

1.207.633.9610 | intention.

bbowler(a)bigelow.org | - Anonymous

+-------------------+---------------------------------------------------+

From: us on
"Li " <liqingjiang(a)gmail.com> wrote in message <hrn7js$jjr$1(a)fred.mathworks.com>...
> I am trying to get linear regression of 10,000 sets of data by using polyfit. Anyone call tell me how to estimate the R square (or R^2)?
>
> Thank you.

look at jd's FEX submission POLYFITN, which returns it...

http://www.mathworks.com/matlabcentral/fileexchange/10065

us
From: Li on
Thank you.

It is a shame that Matlab does not have this function internally.


"us " <us(a)neurol.unizh.ch> wrote in message <hrn94o$r$1(a)fred.mathworks.com>...
> "Li " <liqingjiang(a)gmail.com> wrote in message <hrn7js$jjr$1(a)fred.mathworks.com>...
> > I am trying to get linear regression of 10,000 sets of data by using polyfit. Anyone call tell me how to estimate the R square (or R^2)?
> >
> > Thank you.
>
> look at jd's FEX submission POLYFITN, which returns it...
>
> http://www.mathworks.com/matlabcentral/fileexchange/10065
>
> us