P-value for multivariate regression
2 views (last 30 days)
Show older comments
I am interested in using mvregress for multivariate regression (for example, let’s say I have [y1, y2, y3] and x). I was surprised to see that unlike the regress function, mvregress does not provide statistics such as r-squared or p-values. I therefore have two questions:
1. Is there any reason not to calculate these statistics? It seems to me like inconsistency between the two functions, so I was wondering if there is a good reason for me not to try calculating the p-value.
2. While looking for an answer, I found this: http://www.mathworks.com/matlabcentral/answers/108929-after-using-mvregress-how-can-i-find-the-rsquared-value-t-values-p-values-f-statistic-and-stand. As I understand, this code is helpful for the univariate case in which we have one Y (hence we can use beta(1)). I thought of using beta(1,:), but I wasn’t sure how to use the CovB. I am trying to write such code for the case of multiple y’s with different intercepts and slopes based on Hotelling's T-squared distribution but every time I succeed in solving one problem along the way, a different one pops.
I would very much appreciate any help here.
Thanks!
2 Comments
User110
on 21 Jun 2016
Hi Roni. I've encountered literally the same problem. I also have multiple response variables [y1 y2 y3] and I've become stumped where you are! I figured, as well, that beta(1,:) would be an appropriate adjustment to the code but can't for the life of me figure out how to make CovB compatible for its division with beta to give you the tratio (leading to the pvalue).
Have you gotten the solution?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!