[Rd] Degree of freedom issue on chi-square test of goodness of fit

2024-09-17 Thread LJJ
I am running chi-square test of goodness of fit, the observation data was well groupped to observation freq. I assume the data obey the normal distribution N(μ σ^2), while μ and σ^2 are unknown. So I use their estimation. Consequently, I calculated out the probabilities and input in vector p >x<-c

[Rd] Wrong/incomplete documentation regarding the 100-bytes path length limit.

2024-09-17 Thread Iago Bonnici via R-devel
Hello @r-devel,     From what I read in the following thread: https://stat.ethz.ch/pipermail/r-package-devel/2023q4/010197.html     The major reason to limit paths lengths in R packages is to help support MS Windows 260-chars paths lengths limit (pre-W10).     However, the official document

Re: [Rd] Wrong/incomplete documentation regarding the 100-bytes path length limit.

2024-09-17 Thread Tomas Kalibera
On 9/17/24 12:28, Iago Bonnici via R-devel wrote: Hello @r-devel,     From what I read in the following thread: https://stat.ethz.ch/pipermail/r-package-devel/2023q4/010197.html     The major reason to limit paths lengths in R packages is to help support MS Windows 260-chars paths lengths

Re: [Rd] findInterval

2024-09-17 Thread Martin Maechler
> Gabor Grothendieck > on Mon, 16 Sep 2024 11:21:55 -0400 writes: > Suppose we have `dat` shown below and we want to find the the `y` value > corresponding to the last value in `x` equal to the corresponding component > of `seek` and we wish to return an output the same l

Re: [Rd] findInterval

2024-09-17 Thread Gabor Grothendieck
The other problem in this example is setting NA's. replace(x, x == 0, NA) requires two instances of x making it not very pipe friendly. In dplyr there is na_if to address that problem and base R might have something that addresses this so we don't have to define our own zero2na as the base of