Learn R Programming

distrMod (version 2.3.1)

NbinomFamily: Generating function for Nbinomial families

Description

Generates an object of class "L2ParamFamily" which represents a Nbinomial family where the probability of success is the parameter of interest.

Usage

NbinomFamily(size = 1, prob = 0.5, trafo)
NbinomwithSizeFamily(size = 1, prob = 0.5, trafo)
NbinomMeanSizeFamily(size = 1, mean = 0.5, trafo)

Arguments

size
number of trials
prob
probability of success
mean
alternative parameter for negative binomial parameter
trafo
function in param or matrix: transformation of the parameter

Value

  • Object of class "L2ParamFamily"

concept

Negative Binomial model

Details

The slots of the corresponding L2 differentiable parameteric family are filled. NbinomFamily assumes size to be known; while for NbinomwithSizeFamily it is a second (unknown) parameter; for NbinomMeanSizeFamily is like NbinomwithSizeFamily but uses the size,mean parametrization instead of the size,prob one.

References

Kohl, M. (2005) Numerical Contributions to the Asymptotic Theory of Robustness. Bayreuth: Dissertation. Kohl, M. and Ruckdeschel, P. (2010). R Package distrMod: S4 Classes and Methods for Probability Models. To appear in Journal of Statistical Software.

See Also

L2ParamFamily-class, Nbinom-class

Examples

Run this code
(N1 <- NbinomFamily(size = 25, prob = 0.25))
plot(N1)
FisherInfo(N1)
checkL2deriv(N1)
(N1.w <- NbinomwithSizeFamily(size = 25, prob = 0.25))
plot(N1.w)
FisherInfo(N1.w)
checkL2deriv(N1.w)
(N2.w <- NbinomMeanSizeFamily(size = 25, mean = 75))
plot(N2.w)
FisherInfo(N2.w)
checkL2deriv(N2.w)

Run the code above in your browser using DataLab