search for: mf_rob

Displaying 2 results from an estimated 2 matches for "mf_rob".

Did you mean: frob
2023 Dec 19
1
[External] Re: zapsmall(x) for scalar x
...ur case, mFUN() no longer sees the original n observations, and would not know if there where NAs in that case how many NAs there were in the original data. The examples I have on my version of zapsmall's help page (see below) uses a robust mFUN, "the upper hinge of a box plot": mF_rob <- function(x, ina) boxplot.stats(x, do.conf=FALSE)$stats[5] and if you inspect boxplot.stats() you may know that indeed it also wants to use the full data 'x' to compute its statistics and then deal with NAs directly. Your simplified mFUN interface would not be fully consistent with b...
2023 Dec 18
1
[External] Re: zapsmall(x) for scalar x
Does mFUN() really need to be a function of x and the NA values of x? I can't think of a case where it would be used on anything but the non-NA values of x. I think it would be easier to specify a different mFUN() (and document this new argument) if the function has one argument and is applied to the non-NA values of x. zapsmall <- function(x, digits = getOption("digits"),