Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'master' into jonathan
Browse files Browse the repository at this point in the history
* master:
  Fixed formula term order bug.
  Fix small typo with factor name.
  • Loading branch information
jonathan-taylor committed Feb 26, 2011
2 parents cbd78c5 + 31d1317 commit 6ae525c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/ancova.rst
Expand Up @@ -92,9 +92,9 @@ would yield
{1: {}, X: {('E',): [('E', 'indicator')], ('P',): [('P', 'contrast')]}}
{1: {}, X: {('E',): [('E', 'contrast')], ('P',): [('P', 'indicator')]}}

In the first formula, *M* appears as a contrast while *E* appears
In the first formula, *P* appears as a contrast while *E* appears
as an indicator. In the second formula, *E* appears as a contrast
and *M* as an indicator.
and *P* as an indicator.

Two-way interactions
~~~~~~~~~~~~~~~~~~~~
Expand Down
9 changes: 4 additions & 5 deletions formula/ancova.py
Expand Up @@ -311,11 +311,10 @@ def formula(self):
>>>
"""

f = self.formulae[0]
for ff in self.formulae[1:]:
f = f + ff
return f.delete_terms(Formula([0]))
terms = []
for ff in self.formulae:
terms += list(ff.terms)
return Formula(terms)

# Methods

Expand Down

0 comments on commit 6ae525c

Please sign in to comment.