On Fri, 7 Nov 2008, Rebecca Zhang wrote:
I got below error message when I tried to calculate mean on a
matrix (use meanc).
"Data types not conformable for operation"
Does anyone know what is reason?
Can you show the command in context? This function take a matrix
as argument and returns a row vector, as in
matrix M = mnormal(4,2)
matrix v = meanc(M)
print M v
If I try, e.g.,
scalar s = meanc(M)
I get the error message you mentioned (unless M has just one
column, in which case gretl will convert the result to a scalar).
You can never assign the result of meanc() to a variable of
series type.
Also is there any documentation I can find the detailed help for
such error messages?
You really just have to cross-reference these errors with the
"function reference" to see why they arise.
Allin Cottrell