fitcbp {cpd}R Documentation

Maximum-likelihood fitting of the CBP distribution

Description

Maximum-likelihood fitting of the Complex Biparametric Pearson (CBP) distribution with parameters bb and γ\gamma. Generic methods are print, summary, coef, logLik, AIC, BIC and plot.

Usage

fitcbp(x, bstart = NULL, gammastart = NULL, method = "L-BFGS-B", control = list(), ...)

Arguments

x

A numeric vector of length at least one containing only finite values.

bstart

A starting value for the parameter bb; by default NULL.

gammastart

A starting value for the parameter γ>0\gamma>0; by default NULL.

method

The method to be used in fitting the model. See 'Details'.

control

A list of parameters for controlling the fitting process.

...

Additional parameters.

Details

If the starting values of the parameters bb and γ\gamma are omitted (default option), they are computing by the method of moments (if possible; otherwise they must be entered).

The default method is "L-BFGS-B" (see details in optim function), but non-linear minimization (nlm) or those included in the optim function ("Nelder-Mead", "BFGS", "CG" and "SANN") may be used.

Standard error (SE) estimates for bb and γ\gamma are provided by the default method; otherwise, SE for γ0\gamma_0 where γ=exp(γ0)\gamma=exp{(\gamma_0}) is computed.

Value

An object of class 'fitCBP' is a list containing the following components:

Generic functions:

References

Jose Rodriguez-Avi J, Conde-Sanchez A, Saez-Castillo AJ (2003). “A new class of discrete distributions with complex parameters.” Stat. Pap., 44, 67–88. doi:10.1007/s00362-002-0134-7.

See Also

Plot of observed and theoretical frequencies for a CBP fit: plot.fitCBP

Maximum-likelihood fitting for the CTP distribution: fitctp.

Maximum-likelihood fitting for the EBW distribution: fitebw.

Examples

set.seed(123)
x <- rcbp(500, 1.75, 3.5)
fitcbp(x)
summary(fitcbp(x, bstart = 1.1, gammastart = 3))

[Package cpd version 0.3.2 Index]