Fit: how to return chi-squared instead of r-squared
8 ビュー (過去 30 日間)
古いコメントを表示
Hi, i'm performing this fit:
f=fittype('a*(x^(-b))*exp(-x/c)');
options = fitoptions('Method','NonlinearLeastSquares','StartPoint',[100,1,1]);
[val1,val2,val3]=fit(x,y,f,options);
disp(val2);
and I get on the screen
sse: 9.7986e-04
rsquare: 1.0000
dfe: 97
adjrsquare: 1.0000
rmse: 0.0032
How could I get chi-square instead of r-square?
0 件のコメント
回答 (1 件)
Bruno Pop-Stefanov
2014 年 1 月 22 日
If you want the chi-squared statistic, you will have to write your own code from your input data and your calculated fit.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fit Postprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!