ENH: Add meta-analysis spec, currently alias for GLMM
@@ -22,7 +22,8 @@ def create_model_spec(df, model, *args, **kwargs):
"""
kind = model.get('type', 'glm').lower()
SpecCls = {
- 'glm': GLMMSpec
+ 'glm': GLMMSpec,
+ 'meta': MetaAnalysisSpec,
}[kind]
return SpecCls.from_df(df, model, *args, **kwargs)
@@ -273,6 +274,10 @@ s
return GLMMSpec(**kwargs)
+class MetaAnalysisSpec(GLMMSpec):
+ pass
+
+
class Term(object):
"""Represents a model term.
