P-values for mvregress
18 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
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))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!