statsmodels.genmod.bayes_mixed_glm.PoissonBayesMixedGLM.fit_map#

PoissonBayesMixedGLM.fit_map(method='BFGS', minim_opts=None, scale_fe=False, rng=None)#

Construct the Laplace approximation to the posterior distribution.

Parameters:
methodstr, optional

Optimization method for finding the posterior mode.

minim_optsdict, optional

Options passed to scipy.minimize.

scale_febool, optional

If True, the columns of the fixed effects design matrix are centered and scaled to unit variance before fitting the model. The results are back-transformed so that the results are presented on the original scale.

rngint, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional

If rng is None, a new Generator is created using fresh entropy from the operating system. If rng is an int or array of ints, a new Generator is created, seeded with rng. If rng is already a Generator or RandomState instance, that instance is used.

Returns:
BayesMixedGLMResults instance.