How you compute a p-value from fitted curve using fit

10 vues (au cours des 30 derniers jours)
Mauricio Perillo
Mauricio Perillo le 5 Mar 2013
How you compute a p-value from fitted curve using the fit function. I get info like the r^2 within the goodness output, but not the p-value.
Thanks
For example
X = [0,1,2,3,4,5,6,7,8,9,10]'
Y = [0,1,8,23,64,125,206,343,522,729,1100]'
fo = fitoptions('method','NonlinearLeastSquares','Robust','LAR','Lower',-[inf inf],'Upper',[inf inf],'MaxFunEvals',50000);
fty = fittype('B*x^C');
st_ = [1 1];
set(fo,'Startpoint',st_);
[gfit, goodness] = fit(X,Y,fty,fo)

Réponses (0)

Catégories

En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by