Re: [R] detect and replace outliers by the average

2023-04-21 Thread Bert Gunter
ct though highly improbable. > > -Original Message- > From: R-help On Behalf Of Richard O'Keefe > Sent: Friday, April 21, 2023 7:31 PM > To: AbouEl-Makarim Aboueissa > Cc: R mailing list > Subject: Re: [R] detect and replace outliers by the average > >

Re: [R] detect and replace outliers by the average

2023-04-21 Thread Ebert,Timothy Aaron
Cc: R mailing list Subject: Re: [R] detect and replace outliers by the average [External Email] This can be seen as three steps: (1) identify outliers (2) replace them with NA (trivial) (3) impute missing values. There are packages for imputing missing data. See https://www.analyticsvidhya.com/blog/20

Re: [R] detect and replace outliers by the average

2023-04-21 Thread Richard O'Keefe
What does it mean when one column is just blank, neither a number nor NA, just nothing? On Fri, 21 Apr 2023 at 07:08, AbouEl-Makarim Aboueissa < abouelmakarim1...@gmail.com> wrote: > Dear All: the attached file in the .txt format > > > > *Re:* detect and replace outliers by the average > > > >

Re: [R] detect and replace outliers by the average

2023-04-21 Thread Richard O'Keefe
This can be seen as three steps: (1) identify outliers (2) replace them with NA (trivial) (3) impute missing values. There are packages for imputing missing data. See https://www.analyticsvidhya.com/blog/2016/03/tutorial-powerful-packages-imputing-missing-values/ Here I just want to address the fi

Re: [R] detect and replace outliers by the average

2023-04-20 Thread Rui Barradas
Às 19:58 de 20/04/2023, Rui Barradas escreveu: Às 19:46 de 20/04/2023, AbouEl-Makarim Aboueissa escreveu: Hi Rui: here is the dataset factor x1 x2 0 700 700 0 700 500 0 470 470 0 710 560 0 520 0 610 720 0 710 670 0 610 1 690 620 1 580 540 1 690 690 1 NA 401 1 450 580 1 700 700 1 400

Re: [R] detect and replace outliers by the average

2023-04-20 Thread Dr Eberhard W Lisse
There is at least one outliers package on CRAN. el On 20/04/2023 20:43, AbouEl-Makarim Aboueissa wrote: > Dear All: *please discard my previous email* > > > > *Re:* detect and replace outliers by the average > > > > The dataset, please see attached, contains a group factoring column “ > *fa

Re: [R] detect and replace outliers by the average

2023-04-20 Thread Rui Barradas
Às 19:46 de 20/04/2023, AbouEl-Makarim Aboueissa escreveu: Hi Rui: here is the dataset factor x1 x2 0 700 700 0 700 500 0 470 470 0 710 560 0 520 0 610 720 0 710 670 0 610 1 690 620 1 580 540 1 690 690 1 NA 401 1 450 580 1 700 700 1 400 1 600 1 500 400 1 680 650 2 117 63 2

[R] detect and replace outliers by the average

2023-04-20 Thread AbouEl-Makarim Aboueissa
Dear All: the attached file in the .txt format *Re:* detect and replace outliers by the average The dataset, please see attached, contains a group factoring column “ *factor*” and two columns of data “x1” and “x2” with some NA values. I need some help to detect the outliers and replace it a

Re: [R] detect and replace outliers by the average

2023-04-20 Thread AbouEl-Makarim Aboueissa
Hi Rui: here is the dataset factor x1 x2 0 700 700 0 700 500 0 470 470 0 710 560 0 520 0 610 720 0 710 670 0 610 1 690 620 1 580 540 1 690 690 1 NA 401 1 450 580 1 700 700 1 400 1 600 1 500 400 1 680 650 2 117 63 2 120 68 2 130 73 2 120 69 2 125 54 2 999 70 2 165 62 2 130 987

Re: [R] detect and replace outliers by the average

2023-04-20 Thread Rui Barradas
Às 19:36 de 20/04/2023, AbouEl-Makarim Aboueissa escreveu: Dear All: *Re:* detect and replace outliers by the average The dataset, please see attached, contains a group factoring column “ *factor*” and two columns of data “x1” and “x2” with some NA values. I need some help to detect the out

[R] detect and replace outliers by the average

2023-04-20 Thread AbouEl-Makarim Aboueissa
Dear All: *please discard my previous email* *Re:* detect and replace outliers by the average The dataset, please see attached, contains a group factoring column “ *factor*” and two columns of data “x1” and “x2” with some NA values. I need some help to detect the outliers and replace it and

[R] detect and replace outliers by the average

2023-04-20 Thread AbouEl-Makarim Aboueissa
Dear All: *Re:* detect and replace outliers by the average The dataset, please see attached, contains a group factoring column “ *factor*” and two columns of data “x1” and “x2” with some NA values. I need some help to detect the outliers and replace it and the NAs with the average within each