neighbayes.models.priors.PanelCountPriors

class neighbayes.models.priors.PanelCountPriors(beta_mu=None, beta_sigma=None, sigma2_alpha=2.0, sigma2_beta=None, nu=4.0, rho_lower=-1.0, rho_upper=1.0, alpha_sigma=2.5, alpha_nu=3.0, alpha_fixed=None, time_effect_mu=None, time_effect_sigma=2.5, unit_effect_mu=None, unit_effect_sd_scale=1.0)[source]

Priors for the count panels (neighbayes.models.SARNegBin & co).

The dispersion and period-effect priors of _PanelCountBasePriors, plus the unit effects’:

unit_effect_mu[source]

Mean of the unit effects: 0 when the design keeps an intercept (it carries the level), else log(mean(y)).

Type:

float | None

unit_effect_sd_scale[source]

Scale of the half-Student-t(3) prior on the effects’ sd, which is learned (the effects are partially pooled). Default 1.

Type:

float

__init__(beta_mu=None, beta_sigma=None, sigma2_alpha=2.0, sigma2_beta=None, nu=4.0, rho_lower=-1.0, rho_upper=1.0, alpha_sigma=2.5, alpha_nu=3.0, alpha_fixed=None, time_effect_mu=None, time_effect_sigma=2.5, unit_effect_mu=None, unit_effect_sd_scale=1.0)[source]

Methods

__init__([beta_mu, beta_sigma, ...])

Attributes

alpha_fixed

alpha_nu

alpha_sigma

beta_mu

beta_sigma

nu

rho_lower

rho_upper

sigma2_alpha

sigma2_beta

time_effect_mu

time_effect_sigma

unit_effect_mu

unit_effect_sd_scale

alpha_fixed = None[source]
alpha_nu = 3.0[source]
alpha_sigma = 2.5[source]
beta_mu = None[source]
beta_sigma = None[source]
nu = 4.0[source]
rho_lower = -1.0[source]
rho_upper = 1.0[source]
sigma2_alpha = 2.0[source]
sigma2_beta = None[source]
time_effect_mu = None[source]
time_effect_sigma = 2.5[source]
unit_effect_mu = None[source]
unit_effect_sd_scale = 1.0[source]