@np.deprecate(message='stats.f_value_multivariate deprecated in scipy 0.17.0')
def f_value_multivariate(ER, EF, dfnum, dfden):
 if isinstance(ER, (int, float)):
  ER = array([[ER]])
 if isinstance(EF, (int, float)):
  EF = array([[EF]])
 n_um = ((linalg.det(ER) - linalg.det(EF)) / float(dfnum))
 d_en = (linalg.det(EF) / float(dfden))
 return (n_um / d_en)

@ np . deprecate ( message = 'stats.f_value_multivariate deprecated in scipy 0.17.0' ) def f_value_multivariate ( ER , EF , dfnum , dfden ) : if isinstance ( ER , ( int , float ) ) : ER = array ( [ [ ER ] ] ) if isinstance ( EF , ( int , float ) ) : EF = array ( [ [ EF ] ] ) n_um = ( ( linalg . det ( ER ) - linalg . det ( EF ) ) / float ( dfnum ) ) d_en = ( linalg . det ( EF ) / float ( dfden ) ) return ( n_um / d_en )
returns a multivariate f-statistic .