Am 03.06.2017 um 17:56 schrieb Filipe Rodrigues da Costa:
I'm trying to use the functions sd(x), and mean(x) in a list
instead of
a series. From what I understood, these functions ignore NAs when used
in a series, but when used in a list they return NA if any missing value.
Hi,
have you actually verified that this is really what's happening? In the
guide I see the following explanation:
"The functions max, min, mean, sd, sum and var behave “horizontally”
rather than “vertically” when their argument is a list. For instance,
the following commands
list Xlist = x1 x2 x3
series m = mean(Xlist)
produce a series m whose i-th element is the average of x 1,i ,x 2,i and
x 3,i ; missing values, if any, are implicitly discarded."
To me that sounds as if it works as you intend.
cheers,
sven