Clear Filters
Clear Filters

Errors with fit parameters and correlation coefficient

2 views (last 30 days)
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);

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!