I have a 1x10 vector of eigenvalues and I have a scalar mean of those eigenvalues. For each element of the vector, I'd like to subtract the mean, square the difference and sum the squared differences.
In Matlab the syntax would be:
I thought the EViews syntax would be simple and I've been trying this:
Code: Select all
vector C1F3 = @sum((eig_d4 - mean_eig_d4)^2)
But, I'm getting an error message that states "Vector raised to scalar." Which is odd. The result should indeed be a scalar, but I don't understand the problem here.