Re: [R] [Tagged] Re: Fwd: r-stats: Geometric Distribution

2023-10-19 Thread Ben Bolker
Jeff: I think you might be misdiagnosing the OP's problem; I'm not sure that the R parameterization is primarily intended to avoid FP problems, but rather is *one* possible sensible choice of definition. Note that the Wikipedia page on the geometric distribution:

Re: [R] Yamamoto test in BreakPoints package

2023-10-19 Thread Ben Bolker
Maybe contact the package maintainer (maintainer("BreakPoints")) and ask? (Normally I avoid bugging package maintainers if I can, but it seems you've looked everywhere else you can ...) Ben Bolker On 2023-10-19 4:18 a.m., Richard O'Keefe wrote: Visit the page at CRAN

Re: [R] stopping R emails

2023-10-19 Thread Martin Maechler
> J C Nash > on Thu, 19 Oct 2023 07:52:11 -0400 writes: > Dear Juel, > The R lists are automated, and while there is probably > someone with access to remove particular subscribers, it > is generally easier to UNSUBSCRIBE to them. > I believe Jim was on several

[R] stopping R emails

2023-10-19 Thread J C Nash
Dear Juel, The R lists are automated, and while there is probably someone with access to remove particular subscribers, it is generally easier to UNSUBSCRIBE to them. I believe Jim was on several lists. The full collection is at https://www.r-project.org/mail.html The main help list can be

Re: [R] Yamamoto test in BreakPoints package

2023-10-19 Thread Richard O'Keefe
Visit the page at CRAN https://cran.r-project.org/web/packages/BreakPoints/index.html and download BreakPoints_1.2.tar.gz and you will find yamamoto.R in there. Sadly, there are no useful comments in there.

[R] Yamamoto again

2023-10-19 Thread Nick Wray
Aaargh after sending out last message realised that the R code is in fact on the Cran site. However, if anyone has an algebraic form that would still be v useful as it's hard to get an overview of the process by looking just at the code Thanks Nick Wray [[alternative HTML version

[R] Yamamoto test in BreakPoints package

2023-10-19 Thread Nick Wray
Hello I’m not sure whether this strictly speaking counts as an R-help query but anyway… I have been using the Yamamoto test in the BreakPoints package to find breakpoints in flow data for Scottish rivers. However, I can’t really just use the Yamamoto test as a “black box” ie data in, data out --

Re: [R] [Tagged] Re: Fwd: r-stats: Geometric Distribution

2023-10-19 Thread Jeff Newmiller via R-help
What makes sense in a math class is not necessarily the same as what makes sense in a floating point analysis environment. You lose a lot of significant digits when you add 1 to a floating point number that is close to zero, and this implementation allows the user to avoid that structural

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-19 Thread Sahil Sharma
Hi, today I came across the same problem. And, I'm able to explain it with an example as well. Suppose I want to PDF or P(X=5) in Geometric Distribution with P = 0.2. The theoretical formula is P * (1-P) ^ (x -1). But the R function dgeom(x, p) works like P * (1-P) ^ x, it does not reduce 1 from