Skip to content

Commit

Permalink
Merge 5375e39 into a4e4eb8
Browse files Browse the repository at this point in the history
  • Loading branch information
jseabold committed Sep 26, 2014
2 parents a4e4eb8 + 5375e39 commit c215a37
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/source/gee.rst
Expand Up @@ -19,15 +19,14 @@ Examples
The following illustrates a Poisson regression with exchangeable correlation
within clusters using data on epilepsy seizures.

::
.. ipython:: python
import statsmodels.api as sm
#from statsmodels.genmod.dependence_structures import Exchangeable
data = sm.datasets.get_rdataset('epil', package='MASS').data
fam = sm.families.Poisson()
ind = sm.genmod.cov_struct.Exchangeable()
ind = sm.cov_struct.Exchangeable()
mod = sm.GEE.from_formula("y ~ age + trt + base", "subject", data,
cov_struct=ind, family=fam)
res = mod.fit()
Expand Down Expand Up @@ -81,7 +80,7 @@ Dependence Structures

The dependence structures currently implemented are

.. currentmodule:: statsmodels.genmod.dependence_structures.covstruct
.. currentmodule:: statsmodels.genmod.cov_struct

.. autosummary::
:toctree: generated/
Expand Down

0 comments on commit c215a37

Please sign in to comment.