## models.NegativeBinomialFit


A negative binomial GLM with [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta) estimated, from


Usage

``` python
models.NegativeBinomialFit()
```


[NegativeBinomialGlm.fit](models.NegativeBinomialGlm.md#prospicio.models.NegativeBinomialGlm.fit).


## Attributes

| Name | Description |
|----|----|
| [aic](#aic) | `-2 log_likelihood + 2 (p + 1)`, counting [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta), as R's `AIC`. |
| [glm](#glm) | The GLM at the estimated [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta). |
| [log_likelihood](#log_likelihood) | The maximized log-likelihood. |
| [se_theta](#se_theta) | `MASS`'s standard error of [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta). |
| [theta](#theta) | The maximum-likelihood [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta). |

------------------------------------------------------------------------


#### aic


`-2 log_likelihood + 2 (p + 1)`, counting [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta), as R's `AIC`.


`aic: float`


------------------------------------------------------------------------


#### glm


The GLM at the estimated [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta).


`glm: GlmFit`


------------------------------------------------------------------------


#### log_likelihood


The maximized log-likelihood.


`log_likelihood: float`


------------------------------------------------------------------------


#### se_theta


`MASS`'s standard error of [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta).


`se_theta: float`


------------------------------------------------------------------------


#### theta


The maximum-likelihood [theta](models.TwoPartFit.md#prospicio.models.TwoPartFit.theta).


`theta: float`


## Methods

| Name | Description |
|----|----|
| [predict()](#predict) | Expected response for each row of [design](models.Coding.md#prospicio.models.Coding.design). |

------------------------------------------------------------------------


#### predict()


Expected response for each row of [design](models.Coding.md#prospicio.models.Coding.design).


Usage

``` python
predict(design)
```
