Re: How to extract statistics after using
- From: Ed <d86031@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 10:33:42 -0500
Peter Perkins wrote:
be
Ed wrote:
Hi:
As following function:
[cf_,GOODNESS,OUTPUT] = fit(x,y,ft_ ,'Startpoint',st_)
(1). How to extract statistics after using "fit" function?
I mean "GOODNESS" (SSE,Rsquare....)?
(2). If I saved M-file after CFTOOL had done, the M-file could
Sorry, I described ambiguously! Let me put my problem in theapplied other "similiar" (x,y) dataset without "huge"interference?
Ed, I can't tell exactly what problems you are having. As
described in the help,
[FITTEDMODEL,GOODNESS] = FIT(XDATA,YDATA,...) returns
appropriate
goodness-of-fit measures, for the given inputs, in the
structure GOODNESS.
GOODNESS includes the fields: SSE (sum of squares due to
error), R2
(coefficient of determination or R^2), adjustedR2 (degree of
freedom
adjusted R^2, and stdError (fit standard error or root mean
square error).
so the g.o.f. measures are just the fields of the structure.
And yes, the generated M code should be able to fit similar data
without any
modifications to the code.
Hope this helps.
- Peter Perkins
The MathWorks, Inc.
following way:
1. How to extract coefficients (such as Fourier series in a0, a1, b1,
b2...) from structure variables of statistics which had solved by
using "fit" function.
2. As for Fourier series fitting, one applied CFTOOL M-file to
another "not similar" dataset, which one will received warnings in
Matlab environment. I mean...how to revise the code with adaptive
adjustable coefficients, and there were no huge error or warnings for
those datasets with correlation coefficient above 50%?
.
- Follow-Ups:
- References:
- How to extract statistics after using "fit" function
- From: Ed
- Re: How to extract statistics after using "fit" function
- From: Peter Perkins
- How to extract statistics after using "fit" function
- Prev by Date: Question about graph theroy--Help!
- Next by Date: Re: Question about graph theroy--Help!
- Previous by thread: Re: How to extract statistics after using "fit" function
- Next by thread: Re: How to extract statistics after using
- Index(es):
Relevant Pages
|