Filter löschen
Filter löschen

Errors with fit parameters and correlation coefficient

2 Ansichten (letzte 30 Tage)
aditi
aditi am 5 Mär. 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);

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by