statsmodels.genmod.bayes_mixed_glm.PoissonBayesMixedGLM.from_formula

classmethod PoissonBayesMixedGLM.from_formula(formula, vc_formulas, data, vcp_p=1, fe_p=2, vcp_names=None, vc_names=None) [source]

Fit a BayesMixedGLM using a formula.

Parameters:
  • formula (string) – Formula for the endog and fixed effects terms (use ~ to separate dependent and independent expressions).
  • vc_formulas (dictionary) – vc_formulas[name] is a one-sided formula that creates one collection of random effects with a common variance prameter. If using a categorical expression to produce variance components, note that generally 0 + … should be used so that an intercept is not included.
  • data (data frame) – The data to which the formulas are applied.
  • family (genmod.families instance) – A GLM family.
  • vcp_p (float) – The prior standard deviation for the logarithms of the standard deviations of the random effects.
  • fe_p (float) – The prior standard deviation for the fixed effects parameters.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.bayes_mixed_glm.PoissonBayesMixedGLM.from_formula.html