testing significan linier trend

조회 수: 9 (최근 30일)
Raodah Jabir
Raodah Jabir 2017년 9월 22일
댓글: Raodah Jabir 2017년 9월 22일
If I want to find out whether or not there is a significant non-zero trend in these data, would I use the regress(y,X) function? Here's an example of what I'm doing:
if true
% code
end
load Tmks.txt
time = Tmks (:,1);
suhu = Tmks (:,2);
alfa= 0.05;
[b,bint,r,rint,stats] =regress (time,suhu,alfa);
X = ones (size(time));
[b,bint,r,rint,stats] =regress (time,suhu,alfa);
how to get the significant trend ? thank you
-odah-

채택된 답변

Brendan Hamm
Brendan Hamm 2017년 9월 22일
If you are using a version equal to or later than 2013b than you can use the fitlm function which prints the relevant t-statistics.
  댓글 수: 1
Raodah Jabir
Raodah Jabir 2017년 9월 22일
can you give me an example Brendan Hamm???

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Testing Frameworks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by