Am 05.06.2017 um 20:46 schrieb Sven Schreiber:
Am 05.06.2017 um 14:36 schrieb Allin Cottrell:
> On Sat, 3 Jun 2017, Filipe Rodrigues da Costa wrote:
>> I need to compute the cross-sectional mean and standard deviation and I
>> want NAs to be ignored, as they are in a series. Is there a simple way
>> of doing this?
>
> There isn't a "built-in" way, but one could write a hansl function to
> do it. Here's a simple example.
...
or what about using the selecting function selifc():
set skip_missings off
P.S.: AFAIK the skip_missings option only applies to the conversion
series-to-matrix. But given the problem in this thread perhaps one could
think about extending it, so that it also enables a user choice about
how to deal with missings in the cross-series operation in lists?
(But I agree the default should be that any NA propagates and produces
NAs in the result.)
thanks,
sven