Goodness of Fit (Modified)

버전 1.8.0.0 (3.04 KB) 작성자: Richard Crozier
Computes goodness of fit for regression model given matrix/vector of target and output values.
다운로드 수: 4.7K
업데이트 날짜: 2009/7/1

라이선스 보기

GFIT2 Computes goodness of fit for regression model

USAGE:
[gf] = gfit2(t,y)
[gf] = gfit2(t,y,gFitMeasure)
[gf] = gfit2(t,y,gFitMeasure,options)

INPUT:
t: matrix or vector of target values for regression model
y: matrix or vector of output from regression model.
gFitMeasure: a string or cell array of string values representing
different form of goodness of fit measure as follows:

'all' - calculates all the measures below
'1' - mean squared error (mse)
'2' - normalised mean squared error (nmse)
'3' - root mean squared error (rmse)
'4' - normalised root mean squared error (nrmse)
'5' - mean absolute error (mae)
'6' - mean absolute relative error (mare)
'7' - coefficient of correlation (r)
'8' - coefficient of determination (d)
'9' - coefficient of efficiency (e)
'10' - maximum absolute error
'11' - maximum absolute relative error

options: a string containing other output options, currently the only option is verbose output.

'v' - verbose output, posts some text output for the
chosen measures to the command line

OUTPUT:

gf: vector of goodness of fit values between model output and target for each of the strings in gFitMeasure

EXAMPLES

gf = gfit2(t,y); for all statistics in list returned as vector

gf = gfit2(t,y,'3'); for root mean squared error

gf = gfit2(t,y, {'3'}); for root mean squared error

gf = gfit2(t,y, {'1' '3' '9'}); for mean squared error, root mean
| squared error, and coefficient of
\|/ efficiency
gf = [mse rmse e]

gf = gfit2(t,y,'all','v'); for all statistics in list returned as
vector with information posted to the
command line on each statistic

gf = gfit2(t,y, {'1' '3' '9'}, 'v'); for mean squared error, root
mean squared error, and
coefficient of efficiency as a
vector with information on each
of these also posted to the
command line

인용 양식

Richard Crozier (2024). Goodness of Fit (Modified) (https://www.mathworks.com/matlabcentral/fileexchange/22020-goodness-of-fit-modified), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
도움

받음: Goodness of Fit

줌: gapolyfitn

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.8.0.0

Added a verbose option to return some information to the command line

1.7.0.0

Actually uploaded new file this time, managed to forget to on last update.

1.2.0.0

Changed output for gfit2(t,y) now returns all available statistics as a vector rather than just the mean squared error (choice 1). Also made minor changes to comments and help section.

1.1.0.0

Fixed some bugs and spelling mistakes in comments, and added new output option.

1.0.0.0