pypomp.panel.panel.PanelPomp.negbin

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

Fits a Negative Binomial model to the observation data for each unit and returns a DataFrame with the estimated log-likelihoods for each unit and the total.

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

  • suppress_warnings (bool, optional) – If True, suppresses individual warnings from statsmodels/optimization and issues a summary warning instead. Defaults to True.

Returns:

A DataFrame with columns ‘unit’ and ‘logLik’ containing results for each unit

and their sum (labeled as ‘[[TOTAL]]’ in the first row).

Return type:

pd.DataFrame