I am currently using Python's Patsy module to create matrix inputs for my model. For example, a formula I might use is
'Survived ~ C(Pclass) + C(Sex) + C(honor) + C(tix) + Age + SibSp + ParCh + Fare + Embarked + vowel + middle + C(Title)'
However, I would like to perform model selection so I want to create all possible formulas from the most simple model of
'Survived ~ Age'
to the most complicated model of
'Survived ~ C(Pclass) * C(Sex) * C(honor) * C(tix) * Age * SibSp * ParCh * Fare * Embarked * vowel * middle * C(Title)'
Is there a command in Patsy or some way I can generate all possible string combinations?