distr (version 2.3.1)

NbinomParameter-class: Class "NbinomParameter"

Description

The parameter of a negative binomial distribution, used by Nbinom-class

Arguments

Objects from the Class

Objects can be created by calls of the form new("NbinomParameter", prob, size). Usually an object of this class is not needed on its own, it is generated automatically when an object of the class Nbinom is prepared.

Extends

Class "Parameter", directly.

concept

  • parameter
  • Negative Binomial distribution
  • S4 parameter class

See Also

Nbinom-class Parameter-class

Examples

Run this code
W <- new("NbinomParameter",prob=0.5,size=1)
size(W) # size of this distribution is 1.
size(W) <- 2 # size of this distribution is now 2.

Run the code above in your browser using DataCamp Workspace