rob_estimate_negbin: Computes a robust estimate of the parameters of a negative...

Description Usage Arguments Value Examples

View source: R/estimator_for_negative_binomial.R

Description

Computes a robust estimate of the parameters of a negative binomial random variable.

Usage

1

Arguments

x

A vector of univariate observations

start

Initial vector of parameters to start the optimization

Value

The estimated vector of parameters. The first entry is the mean and the second is the dispersion parameter, that equals 1/size.

Examples

1
2
3
4
  library(MASS)
  x <- rnbinom(100,mu=2,size=1)
  MASS::fitdistr(x,dens="negative binomial")
  rob_estimate_negbin(x)

mvaldora/robustr documentation built on Nov. 4, 2019, 8:33 p.m.