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:¶
- mu
ndarray
Usually but not always the fitted mean response variable.
- scale
float
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_trials
int
Number of trials for the binomial distribution. The default is 1 which corresponds to a Bernoulli random variable.
- mu
- Returns:¶
distribution
instance
Last update:
Oct 03, 2024