Error message for calculating the variance of my beta
Show older comments
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 Comment
Vivek Selvam
on 8 Nov 2013
Edited: Vivek Selvam
on 8 Nov 2013
You are using var as an array variable. So the index (b) have to be positive integer.
Accepted Answer
More Answers (0)
Categories
Find more on Time Series 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!