Find P-values from regression

2 views (last 30 days)
Tariq Ahmed Abul Kalam Azad
Edited: Roger Wohlwend on 25 Sep 2014
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 Comment
Roger Wohlwend
Roger Wohlwend on 25 Sep 2014
Edited: Roger Wohlwend on 25 Sep 2014
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?

Sign in to comment.

Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!