Dear all,

I would like to compute the mean of a vector which involves NAs, implying that the NAs should simply be neglected/not counted. But this is not the way gretl handles matrices:

<gretl>
matrix A = {NA, 1; 2, 2; 1, 3}
mA = meanc(A)
mA
</gretl>

yields

<output>
mA (1 x 2)
  nan     2
</output>

Is this intended? For instance, R, it seems, fully neglects the NAs and computes the mean.

Best,
Artur