def DescStat(endog):
 if (endog.ndim == 1):
  endog = endog.reshape(len(endog), 1)
 if (endog.shape[1] == 1):
  return DescStatUV(endog)
 if (endog.shape[1] > 1):
  return DescStatMV(endog)

def DescStat ( endog ) : if ( endog . ndim == 1 ) : endog = endog . reshape ( len ( endog ) , 1 ) if ( endog . shape [ 1 ] == 1 ) : return DescStatUV ( endog ) if ( endog . shape [ 1 ] > 1 ) : return DescStatMV ( endog )
returns an instance to conduct inference on descriptive statistics via empirical likelihood .