Significance test for least squares line
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dimitrios Bentis
el 21 de En. de 2019
Respondida: Jeff Miller
el 21 de En. de 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145018/NyAlesund%20spring.jpeg)
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
0 comentarios
Respuesta aceptada
Jeff Miller
el 21 de En. de 2019
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Testing Frameworks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!