Goodness of Fit
Computes goodness of fit for regression model given vector of target and output values.
USAGE:
[gf] = gfit(t,y)
[gf] = gfit(t,y,gFitMeasure)
INPUT
t: vector of target values for regression model
y: vector of output from regression model.
gFitMeasure: string value representing different form of goodness of fit measure (for eg. '1' - mean squarred error, '5' - mean absolute error)
OUTPUT:
gf: goodness of fit values between model output and target
Cite As
Durga Lal Shrestha (2025). Goodness of Fit (https://www.mathworks.com/matlabcentral/fileexchange/7968-goodness-of-fit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Regression > Linear Regression > Multiple Linear Regression >
Tags
Acknowledgements
Inspired: Goodness of Fit (Modified)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | BSD License |