[R] Excluding data in R
Petr Pikal
petr.pikal at precheza.cz
Mon Oct 4 11:32:35 CEST 2004
On 3 Oct 2004 at 13:56, Laura Collins wrote:
> I was hoping someone could help me!
>
>
>
> How do you exclude outliers from a set of data?
It depends strongly on your definition of outliers. You can apply
some rules of thumb (e.g. points more than 3 sd apart) but it is
quite often questionable. (see discussion few days ago).
If you already identified your outliers use
my.data[-outliers.points] in case of vector or
my.data[-outliers.points,] in case of data frame or matrix.
Cheers
Petr
>
>
>
> Thanks,
>
>
>
> Laura
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal at precheza.cz
More information about the R-help
mailing list