Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 52f2e41e364dbd60836bc82b8e39535e3713f98d authored by Lisa Amrhein on 13 June 2019, 15:10:03 UTC, committed by cran-robot on 13 June 2019, 15:10:03 UTC
version 1.0.0
0 parent
  • Files
  • Changes
  • fac1a53
  • /
  • man
  • /
  • Poisson-beta.Rd
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:52f2e41e364dbd60836bc82b8e39535e3713f98d
directory badge
swh:1:dir:1fc930e1d4b336c21e3a0188464a107e4c517ccc
content badge
swh:1:cnt:4b5aa53207236313583b33e276d811274cfb586f

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Poisson-beta.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pb.R
\name{Poisson-beta}
\alias{Poisson-beta}
\alias{dpb}
\alias{ppb}
\alias{qpb}
\alias{rpb}
\title{Poisson-beta Distribution}
\usage{
dpb(x, alpha, beta, c = 1, log = FALSE)

ppb(q, alpha, beta, c = 1, lower.tail = TRUE, log.p = FALSE)

qpb(p, alpha, beta, c = 1, lower.tail = TRUE, log.p = FALSE)

rpb(n, alpha, beta, c = 1)
}
\arguments{
\item{x, q}{Vector of (non-negative integer) quantiles}

\item{alpha, beta}{Non-negative parameters of the beta distribution (shape1 and shape2)}

\item{c}{Numeric scaling parameter of the beta distribution. The standard beta is
scaled on (0,1) (default) and can be transformed to (0,c).}

\item{log, log.p}{Logical; if TRUE, probabilities p are given as log(p)}

\item{lower.tail}{Logical; if TRUE (default), probabilities are \eqn{P[X \le x]}
otherwise, \eqn{P[X > x]}.}

\item{p}{Vector of probabilities}

\item{n}{Number of observations}
}
\description{
Density, distribution function, quantile function and random generation for the
Poisson-beta distribution: a Poisson distribution whose parameter itself follows
a beta distribution. Alpha and beta are the parameters of this specific beta
distribution which is scaled on (0, c) in contrast to the usual scaling of the
standard beta distribution on (0,1).
}
\examples{
 X <- dpb(x=0:200, alpha=5, beta=3, c=20)
 plot(0:200, X, type='l')
 Y <- dpb(0:10, seq(10.0,11.0,by=0.1), seq(30.0,31.0,by=0.1), seq(10.2,11.2,by=0.1))
 Y <- ppb(q= 0 :200, alpha=5, beta= 3, c=20)
 plot(0:200, Y, type="l")
 Z <- qpb(p= seq(0,1, by= 0.01), alpha=5, beta= 3, c=20)
 plot(seq(0,1, by= 0.01),Z, type="l")
 RV <- rpb(n = 1000, alpha=5, beta= 3, c=20)
 plot(0 : 200, X, type="l")
 lines(density(RV), col="red")
 R2 <- rpb(11, seq(10.0,11.0,by=0.1), seq(30.0,31.0,by=0.1), seq(10.2,11.2,by=0.1))
}
\keyword{Poisson-beta}
\keyword{distribution}
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API