Errors with fit parameters and correlation coefficient

3 vues (au cours des 30 derniers jours)
aditi
aditi le 5 Mar 2020
I am doing spearman linear fit using the code structure given below. It gives me m (slope), c (intercept), correlation coefficients (r, p).
I want standart errors for all these parameters. Can anyone please help me...
m=load('testy.txt');
n=m(:,1);
ne=m(:,2);
o=load('testx.txt');
p=o(:,1);
E = linspace(min(p),max(p),500);
[r,pe]=corr(p,n,'Type','Spearman')
p4 = polyfit(p,n,1)
f4 = polyval(p4,E);

Réponses (0)

Catégories

En savoir plus sur Interpolation 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