P-values for mvregress

조회 수: 8 (최근 30일)
ace327
ace327 2014년 12월 10일
편집: Roger Wohlwend 2014년 12월 11일
I am running mvregress on a few regressors and I was able to get a beta value (or regression coefficient) for each of the regressors. However, I can't seem to produce the p-value that is associated with each beta. Is there a way to get standard errors and p-values for all the beta values when running multivariate regression? Am I not using the right function?
Thanks

답변 (1개)

Roger Wohlwend
Roger Wohlwend 2014년 12월 11일
편집: Roger Wohlwend 2014년 12월 11일
[beta,Sigma,E,CovB] = mvregress(X,Y)
The fourth output (CovB) is the covariance matrix of the coefficient. You can use that matrix to compute the standard errors.
Errors = sqrt(diag(CovB))

카테고리

Help CenterFile Exchange에서 Linear Regression에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by