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!