pypomp.PanelPomp.negbin

PanelPomp.negbin(autoregressive: bool = False, suppress_warnings: bool = True) DataFrame

Fit a Negative Binomial model to the observation data of each unit.

Parameters:
  • autoregressive (bool, optional) – If True, fit an autoregressive AR(1) model. Defaults to False (iid).

  • suppress_warnings (bool, optional) – If True, suppress statsmodels warning messages during fitting. Defaults to True.

Returns:

DataFrame with columns 'unit' and 'logLik' containing the individual unit log-likelihoods and their sum (labeled as '[[TOTAL]]').

Return type:

pd.DataFrame