help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: statistics functions and NA


From: marco atzeri
Subject: Re: statistics functions and NA
Date: Tue, 20 Mar 2012 20:54:16 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0

On 3/20/2012 7:03 PM, CdeMills wrote:
Hello,
I have data which are segmented. For each segment I compute some model, then
I collate everything. Except that for some segments the result is dubious,
and the associated values for this segment are replaced by NA.

The sum of the components of a vector containing one NA is NA ... so
statistic functions like mean, std, var, all give NA as result.

R as a specific parameter in this case, na.rm which,, when true, means to
skip over NA values. What do you think about adding such behaviour to mean,
std, val and similar ? The idea is to merely keep NA values as in indicator
of problem in the data, and yet extract stats without adding a supplemental
step of filtering away those NA.

Regards

Pascal


you are probably looking for the NaN package

http://octave.sourceforge.net/nan/index.html

Regards
Marco


reply via email to

[Prev in Thread] Current Thread [Next in Thread]