Skip to content

Allow linear model formula to extract variables from calling scope. #3382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean GLM.from_formula docstring.
  • Loading branch information
adamboche committed Feb 25, 2019
commit 8ccdf363f3c3cef04c91541a164af1b0339d3c12
4 changes: 4 additions & 0 deletions pymc3/glm/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ def from_formula(cls, formula, data, priors=None,
vars=None, family='normal', name='',
model=None, offset=0., eval_env=0):
"""
Creates GLM from formula.

Parameters
----------
formula : str - a `patsy` formula
data : a dict-like object that can be used to look up variables referenced
in `formula`
Expand Down