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

2023-04-21 Thread Bert Gunter
I think this discussion has gone off the rails to matters lying out of the purview of this list. Bert On Fri, Apr 21, 2023 at 6:16 PM Ebert,Timothy Aaron wrote: > > Sometimes outliers happen. No matter the sample size there is always the > possibility that one or more values are correct though

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

2023-04-21 Thread Ebert,Timothy Aaron
Sometimes outliers happen. No matter the sample size there is always the possibility that one or more values are correct 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

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] Query about code

2023-04-21 Thread Bert Gunter
"Perhaps you could supply a reference to the work you are using?" ... in which case they should simply email the author directly, no? -- Bert On Fri, Apr 21, 2023 at 3:22 PM Jim Lemon wrote: > > Hi Yeswanth, > You seem to be referring to a specific publication by a specific > author. Unless som

Re: [R] Query about code

2023-04-21 Thread Jim Lemon
Hi Yeswanth, You seem to be referring to a specific publication by a specific author. Unless someone in R-help knows who and what you are referring to, it seems very difficult. Perhaps you could supply a reference to the work you are using? JIm On Sat, Apr 22, 2023 at 7:03 AM ADIGARLA YESWANTH NA

[R] Query about code

2023-04-21 Thread ADIGARLA YESWANTH NAIDU
I have been trying to write the code for the CCM analysis that you used in your study, but unfortunately, I haven't been able to write it. I was wondering if you would be willing to share the code with me. I understand that the code may be your intellectual property, but I assure you that I will us

[R] [Rd] R 4.3.0 is released

2023-04-21 Thread Peter Dalgaard via R-help
The build system rolled up R-4.3.0.tar.gz (codename "Already Tomorrow") this morning. This is a major update, containing many new features and bug fixes. The list below details the changes in this release. You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.3.0.tar.

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

2023-04-21 Thread Rui Barradas
Hello, Às 09:42 de 21/04/2023, Jeff Newmiller escreveu: 0 Somewhat cryptic... Rui Barradas On April 21, 2023 4:08:08 AM GMT+09:00, Dr Eberhard W Lisse wrote: There is at least one outliers package on CRAN. el On 20/04/2023 20:43, AbouEl-Makarim Aboueissa wrote: Dear All: *please di

Re: [R] Warning message: In length(barlist) == 1 && as.character(barlist[[1]][[2]]) == "1"

2023-04-21 Thread Ivan Krylov
On Thu, 20 Apr 2023 10:11:03 +0200 Giozz Lau wrote: > I am writing to seek assistance regarding a warning message that I > encountered while running a CLMM with two main factors and one random > factor ("participants"). One of the main factors consists of six > levels that can be either categoric

[R] Warning message: In length(barlist) == 1 && as.character(barlist[[1]][[2]]) == "1"

2023-04-21 Thread Giozz Lau
Hello, I am writing to seek assistance regarding a warning message that I encountered while running a CLMM with two main factors and one random factor ("participants"). One of the main factors consists of six levels that can be either categorical or numerical. As this is my first time running thi

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

2023-04-21 Thread Jeff Newmiller
0 On April 21, 2023 4:08:08 AM GMT+09:00, Dr Eberhard W Lisse wrote: >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 >>

Re: [R] glm.nb and Error in x[good, , drop = FALSE] * w : non-conformable arrays

2023-04-21 Thread Patrick Giraudoux
Many thanks Ivan ! This is fairly clear to me, now... When I dumped the data.frame, I found strange to have a "table" declaration for deg, but was not able to judge if it was a problem or not (I would have expected something as "numeric") Your workaround is fine to me (I do not need to carry on

Re: [R] glm.nb and Error in x[good, , drop = FALSE] * w : non-conformable arrays

2023-04-21 Thread Ivan Krylov
On Fri, 21 Apr 2023 09:02:37 +0200 Patrick Giraudoux wrote: > I meet an error with glm.nb that I cannot explain the origin (and > find a fix). The model I want to fit is the following: > > library(MASS) > > glm.nb(deg~offset(log(durobs))+zone,data=db) > > and the data.frame is dumped below. T

[R] glm.nb and Error in x[good, , drop = FALSE] * w : non-conformable arrays

2023-04-21 Thread Patrick Giraudoux
Dear Listers, I meet an error with glm.nb that I cannot explain the origin (and find a fix). The model I want to fit is the following: library(MASS) glm.nb(deg~offset(log(durobs))+zone,data=db) and the data.frame is dumped below. Has anyone an idea about what the trouble comes from ? (except