statsmodels.genmod.bayes_mixed_glm.BinomialBayesMixedGLM.fit_map

BinomialBayesMixedGLM.fit_map(method='BFGS', minim_opts=None, scale_fe=False)

Construct the Laplace approximation to the posterior distribution.

Parameters:
  • method (str) – Optimization method for finding the posterior mode.

  • minim_opts (dict) – Options passed to scipy.minimize.

  • scale_fe (bool) – 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.

Return type:

BayesMixedGLMResults instance.