Find P-values from regression
显示 更早的评论
I have response variable matrix Y and explanatory variable matrices X1,X2,X3 and X4.I want to find the p value of the explanatory matrices. I dont use Linearmodel.fit method.I use svd and recursive least squares to find the regression coefficients.So how do I find the p values from X matrix and Y matrix.
i=1:10;
X(i)=[x1 x2 x3 x4];
I tried [r,p]= corrcoef(X) but i get same values of p for all explanatory variables
Help would be appreciated
1 个评论
Roger Wohlwend
2014-9-25
编辑:Roger Wohlwend
2014-9-25
I am not sure what you mean with p-value. When you do a regression you get p-values for the coefficients that tell you if the coefficients are significant. However, that seems not what you have in mind. What do you mean with p-value?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!