image thumbnail

Goodness of Fit

version (3.07 KB) by Durga Lal Shrestha
Computes goodness of fit (model performance) for regression.


Updated 04 Apr 2016

View License

Computes goodness of fit for regression model given vector of target and output values.
[gf] = gfit(t,y)
[gf] = gfit(t,y,gFitMeasure)

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)

gf: goodness of fit values between model output and target

Cite As

Durga Lal Shrestha (2021). Goodness of Fit (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Goodness of Fit (Modified)

Community Treasure Hunt

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

Start Hunting!