#NEWLINE# def summary_params_2dflat( result , endog_names = None , exog_names = None , alpha = 0.05 , use_t = True , keep_headers = True , endog_cols = False ) : #NEWLINE# #INDENT# 'summary table for parameters that are 2d, e.g. multi-equation models\n\n    Parameters\n    ----------\n    result : result instance\n        the result instance with params, bse, tvalues and conf_int\n    endog_names : None or list of strings\n        names for rows of the parameter array (multivariate endog)\n    exog_names : None or list of strings\n        names for columns of the parameter array (exog)\n    alpha : float\n        level for confidence intervals, default 0.95\n    use_t : bool\n        indicator whether the p-values are based on the Student-t\n        distribution (if True) or on the normal distribution (if False)\n    keep_headers : bool\n        If true (default), then sub-tables keep their headers. If false, then\n        only the first headers are kept, the other headerse are blanked out\n    endog_cols : bool\n        If false (default) then params and other result statistics have\n        equations by rows. If true, then equations are assumed to be in columns.\n        Not implemented yet.\n\n    Returns\n    -------\n    tables : list of SimpleTable\n        this contains a list of all seperate Subtables\n    table_all : SimpleTable\n        the merged table with results concatenated for each row of the parameter\n        array\n\n    ' #NEWLINE# res = result #NEWLINE# params = res . params #NEWLINE# if ( params . ndim == 2 ) : #NEWLINE# #INDENT# n_equ = params . shape [ 1 ] #NEWLINE# if ( not ( len ( endog_names ) == params . shape [ 1 ] ) ) : #NEWLINE# #INDENT# raise ValueError ( 'endog_names has wrong length' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( not ( len ( endog_names ) == len ( params ) ) ) : #NEWLINE# #INDENT# raise ValueError ( 'endog_names has wrong length' ) #NEWLINE# #UNINDENT# n_equ = 1 #NEWLINE# #UNINDENT# if ( not isinstance ( endog_names , list ) ) : #NEWLINE# #INDENT# if ( endog_names is None ) : #NEWLINE# #INDENT# endog_basename = 'endog' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# endog_basename = endog_names #NEWLINE# #UNINDENT# endog_names = res . model . endog_names [ 1 : ] #NEWLINE# #UNINDENT# tables = [ ] #NEWLINE# for eq in range ( n_equ ) : #NEWLINE# #INDENT# restup = ( res , res . params [ : , eq ] , res . bse [ : , eq ] , res . tvalues [ : , eq ] , res . pvalues [ : , eq ] , res . conf_int ( alpha ) [ eq ] ) #NEWLINE# skiph = False #NEWLINE# tble = summary_params ( restup , yname = endog_names [ eq ] , xname = exog_names , alpha = alpha , use_t = use_t , skip_header = skiph ) #NEWLINE# tables . append ( tble ) #NEWLINE# #UNINDENT# for i in range ( len ( endog_names ) ) : #NEWLINE# #INDENT# tables [ i ] . title = endog_names [ i ] #NEWLINE# #UNINDENT# table_all = table_extend ( tables , keep_headers = keep_headers ) #NEWLINE# return ( table_all , table_all )