If you insist ...

1. You are reinventing wheels (poorly).

RSiteSearch("outlier tests",restr="fun")
##RsiteSearch is a handy interface to search facilities on CRAN.
# Go to the site directly for more. Or use Google or other search engines.

will show you that a R package, outlier, already exists that does all
the tests you can imagine -- and more.

2. For why this is a BAD idea, you would need to read up on the
voluminous literature. Talking to a local statistician might be a
better alternative. But here's a hint: AFAIK, the FDA allows no such
tests in the submissions of clinical trial data because it would bias
the results. (Correction welcome if this statement is wrong).

Cheers,
Bert

On Wed, Feb 9, 2011 at 10:25 AM, kirtau <kir...@live.com> wrote:
>
> I have two questions,
>
> 1) if the solutions is only three or four lines of code is there anyway you
> can share those lines instead of stating that the solution is easy and
> providing no code. I prefer not to use an R-Package but have a "raw
> function".
>
> 2) Can you explain why you feel that this is "statistical malpractice"
>
> -----
> - AK
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/Removing-Outliers-Function-tp3293395p3297853.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Bert Gunter
Genentech Nonclinical Biostatistics

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to