Error message for calculating the variance of my beta
이전 댓글 표시
I want to calculate the variance of my beta, I am typing in this command, however i am getting the error message 'subscript indices must either be real positive integers or logical', 'Attempted to access (0.0686532); index must be a positive integer or logical'
My command is
var(b)=inv(xcl'*xcl)sqrt(sigma_r)
댓글 수: 1
Vivek Selvam
2013년 11월 8일
편집: Vivek Selvam
2013년 11월 8일
You are using var as an array variable. So the index (b) have to be positive integer.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!