How you compute a p-value from fitted curve using fit
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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)
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!