statsmodels.othermod.betareg.BetaModel.get_distribution¶
- BetaModel.get_distribution(params, exog=None, exog_precision=None)[source]¶
Return a instance of the predictive distribution.
- Parameters:
- paramsnumpy:array_like
The model parameters.
- exognumpy:array_like
Array of predictor variables for mean.
- exog_precisionnumpy:array_like
Array of predictor variables for mean.
- Returns:
Instanceofascipyfrozendistributionbasedonestimated- parameters.
See also
Notes
This function delegates to the predict method to handle exog and exog_precision, which in turn makes any required transformations.
Due to the behavior of
scipy.stats.distributions objects, the returned random number generator must be called withgen.rvs(n)wherenis the number of observations in the data set used to fit the model. If any other value is used forn, misleading results will be produced.