I deal with this in the results class.  Better to do it here?


On Sat, Mar 22, 2014 at 4:00 AM, Josef Perktold <notifications@github.com>wrote:

> In statsmodels/regression/lme.py:
>
> > +
> > +        # If there is one covariate, it may be passed in as a column
> > +        # vector, convert these to 2d arrays.
> > +        if exog.ndim == 1:
> > +            exog = exog[:,None]
> > +        if exog_re is not None and exog_re.ndim == 1:
> > +            exog_re = exog_re[:,None]
> > +
> > +        self.exog_re_names = None
> > +        if exog_re is None:
> > +            # Default random effects structure (random intercepts).
> > +            exog_re = np.ones((len(endog), 1), dtype=np.float64)
> > +        else:
> > +            try:
> > +                self.exog_re_names = exog_re.columns
> > +            except:
>
> do we have default exog_re_names somewhere?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/statsmodels/statsmodels/pull/1398/files#r10852084>
> .
>