statsmodels.genmod.families.family.Binomial.get_distribution

Binomial.get_distribution(mu, scale=1.0, var_weights=1.0, n_trials=1)[source]

Frozen Binomial distribution instance for given parameters

Parameters:
mundarray

Usually but not always the fitted mean response variable.

scalefloat

The scale parameter is ignored.

var_weightsarray_like

1d array of variance (analytic) weights. The default is 1. var_weights are ignored for Poisson.

n_trialsint

Number of trials for the binomial distribution. The default is 1 which corresponds to a Bernoulli random variable.

Returns:
distribution instance