reading elements of cfit
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to assign the various values returned from fit (cf_) to variables. How do I access the 95% confidence bounds?
e.g.
[cf_, G] = fit(X,Y, etc.);
A = cf_.a; B = cf_.b; etc.
but ? = cf_.a confidence bound.
thanks
kip
0 Commenti
Risposte (1)
John D'Errico
il 6 Ott 2020
Easy enough. Consider the simple model:
x = rand(10,1);
y = rand(10,1);
mdl = fit(x,y,'poly1')
confint(mdl)
So as you see, confint produces confidence intervals on the parameters.
If you wanted confidence intervals on a predicted point, here, at x == 0.25...
predint(mdl,0.25)
0 Commenti
Vedere anche
Categorie
Scopri di più su Fit Postprocessing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!