pvalue for rate of change

4 ビュー (過去 30 日間)
Sourangsu Chowdhury
Sourangsu Chowdhury 2018 年 10 月 28 日
コメント済み: Star Strider 2018 年 10 月 28 日
I have a matrix (aa) 5000 x 12 matrix containing temperature for 5000 (1x1) grids for 12 years. I estimated the rate of change in temperature/year over each grid by estimating the slope in temperature through 12 years using the polyfit function. How to get a p-value for the rate of change of temperature in each grid which will give an idea if the rate of change estimated is significant? Attached is the code for estimating the rate of change of temperature for each grid.
y=1:12;
kq= zeros(5000,2);
X = mat2cell(aa,1*ones(5000,1),12);
for i=1:5000;
u(i,:)= aa(i,:);
kq(i,:)= polyfit(y,u(i,:),1);
end

採用された回答

Star Strider
Star Strider 2018 年 10 月 28 日
The File Exchange contribution polyparci (link) will give you the confidence intervals on the parameters.
  9 件のコメント
Sourangsu Chowdhury
Sourangsu Chowdhury 2018 年 10 月 28 日
編集済み: Sourangsu Chowdhury 2018 年 10 月 28 日
Thank you so much, you may consider https://www.bmj.com/content/343/bmj.d2304 for updating the function for providing the p values as a function of the CIs returned as of now
Star Strider
Star Strider 2018 年 10 月 28 日
The polyparci function calculates the t-statistic internally from the stated (or default) ‘alpha’ value. I will have to consider calculating the p-values given the paramater variances.
Thank you for the BMJ reference. I am a physician and Diplomate of the American Board of Internal Medicine, so I am familiar with it, although I do not subscribe to it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Preprocessing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by