Significance test for least squares line

조회 수: 1 (최근 30일)
Dimitrios Bentis
Dimitrios Bentis 2019년 1월 21일
답변: Jeff Miller 2019년 1월 21일
Hello everyone,
I would like to ask how is it possible to do a significance test in the least squares line i plotted of 40 values reffering to wind direction. The least squares line is plotted with the lsline command.
NyAlesund spring.jpg
What command do i need to conclude whether the tilt of this line is significant or not. What would be the inputs in this case?
Thanks in advance

채택된 답변

Jeff Miller
Jeff Miller 2019년 1월 21일
Look at the regress command. You will want something like:
[b,bint,r,rint,stats] = regress(Wind,Year);
stats will contain the p-value that most people use to test whether the tilt is significant.

추가 답변 (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