def __init__(self, endog, exog, exog_precision=None, link=families.links.Logit(), link_precision=families.links.Log(), **kwds):
    etmp = np.array(endog)
    assert np.all(((0 < etmp) & (etmp < 1)))
    if (exog_precision is None):
        extra_names = ['precision']
        exog_precision = np.ones((len(endog), 1), dtype='f')
    else:
        extra_names = [('precision-%s' % zc) for zc in (exog_precision.columns if hasattr(exog_precision, 'columns') else range(1, (exog_precision.shape[1] + 1)))]
    kwds['extra_params_names'] = extra_names
    super(BetaModel, self).__init__(endog, exog, exog_precision=exog_precision, **kwds)
    self.link = link
    self.link_precision = link_precision
    self.nobs = self.endog.shape[0]
    self.df_model = (self.nparams - 1)
    self.df_resid = (self.nobs - self.nparams)
    assert (len(self.exog_precision) == len(self.endog))
    self.hess_type = 'oim'
    if ('exog_precision' not in self._init_keys):
        self._init_keys.extend(['exog_precision'])
    self._init_keys.extend(['link', 'link_precision'])
    self._null_drop_keys = ['exog_precision']
    self.results_class = BetaResults
    self.results_class_wrapper = BetaResultsWrapper
def __init__(self, endog, exog, exog_precision=None, link=families.links.Logit(), link_precision=families.links.Log(), **kwds):
    etmp = np.array(endog)
    assert np.all(((0 < etmp) & (etmp < 1)))
    if (exog_precision is None):
        extra_names = ['precision']
        exog_precision = np.ones((len(endog), 1), dtype='f')
    else:
        extra_names = [('precision-%s' % zc) for zc in (exog_precision.columns if hasattr(exog_precision, 'columns') else range(1, (exog_precision.shape[1] + 1)))]
    kwds['extra_params_names'] = extra_names
    super(BetaModel, self).__init__(endog, exog, exog_precision=exog_precision, **kwds)
    self.link = link
    self.link_precision = link_precision
    self.nobs = self.endog.shape[0]
    self.df_model = (self.nparams - 1)
    self.df_resid = (self.nobs - self.nparams)
    assert (len(self.exog_precision) == len(self.endog))
    self.hess_type = 'oim'
    if ('exog_precision' not in self._init_keys):
        self._init_keys.extend(['exog_precision'])
    self._init_keys.extend(['link', 'link_precision'])
    self._null_drop_keys = ['exog_precision']
    self.results_class = BetaResults
    self.results_class_wrapper = BetaResultsWrapper