Vectorize linear trend estimates
이전 댓글 표시
I have a few thousand time series of the same length, and for each I'd like to obtain its linear trend and the corresponding p-value. I use for loops and estimate the trend/p-value for each time series sequentially using the robustfit function.
The whole thing doesn't take much time. But still I wonder whether it is possible to vectorize the trend estimates. I understand I can get all linear trends at once using the backslash operator. But that doesn't give p-values.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multiple Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!