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

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

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

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

[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

[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

Re: [ESS] Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?

2023-04-21 Thread Tyler Smith via ESS-help
Hi Kevin, If you have an older version of `poly-R`, the function `poly-gfm+r-mode` might not be present. This was added to `poly-R` dev in July 2021, I'm not sure exactly when it would have been added to the released version. If that's the case, updating to the current version of `poly-R`

[ESS] Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?

2023-04-21 Thread Kevin Zembower via ESS-help
Tyler, thanks for your response. I had found your website while searching for a solution to my problem. Currently, I have this in my .emacs.d/init.el file: (setq load-path (append '("~/.emacs.d/polymode/" "~/.emacs.d/polymode/modes") load-path)) (require 'poly-R) (require 'poly-markdown)

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

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

[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

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.

[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