SimpleTable(np.vstack([res.sigmabygroup, np.sqrt(res.sigmabygroup)]), headers=res.unique.tolist())) return templ % resvals #get results for example #----------------------- print('\nTest for equality of coefficients for all exogenous variables') print('-------------------------------------------------------------') res = OneWayLS(y, x, groups=groupind.astype(int)) print_results(res) print('\n\nOne way ANOVA, constant is the only regressor') print('---------------------------------------------') print('this is the same as scipy.stats.f_oneway') res = OneWayLS(y, np.ones(len(y)), groups=groupind) print_results(res) print('\n\nOne way ANOVA, constant is the only regressor with het is true') print('--------------------------------------------------------------') print('this is the similar to scipy.stats.f_oneway,') print('but variance is not assumed to be the same across groups') res = OneWayLS(y, np.ones(len(y)), groups=groupind.astype(str), het=True) print_results(res) print(res.print_summary()) #(res)
SimpleTable(np.vstack([res.sigmabygroup, np.sqrt(res.sigmabygroup)]), headers=res.unique.tolist()) ) return templ % resvals # get results for example # ----------------------- print "\nTest for equality of coefficients for all exogenous variables" print "-------------------------------------------------------------" res = OneWayLS(y, x, groups=groupind.astype(int)) print_results(res) print "\n\nOne way ANOVA, constant is the only regressor" print "---------------------------------------------" print "this is the same as scipy.stats.f_oneway" res = OneWayLS(y, np.ones(len(y)), groups=groupind) print_results(res) print "\n\nOne way ANOVA, constant is the only regressor with het is true" print "--------------------------------------------------------------" print "this is the similar to scipy.stats.f_oneway," print "but variance is not assumed to be the same across groups" res = OneWayLS(y, np.ones(len(y)), groups=groupind.astype(str), het=True) print_results(res) print res.print_summary() # (res)
SimpleTable(np.vstack([res.sigmabygroup, np.sqrt(res.sigmabygroup)]), headers=res.unique.tolist()) ) return templ % resvals # get results for example # ----------------------- print("\nTest for equality of coefficients for all exogenous variables") print("-------------------------------------------------------------") res = OneWayLS(y, x, groups=groupind.astype(int)) print_results(res) print("\n\nOne way ANOVA, constant is the only regressor") print("---------------------------------------------") print("this is the same as scipy.stats.f_oneway") res = OneWayLS(y, np.ones(len(y)), groups=groupind) print_results(res) print("\n\nOne way ANOVA, constant is the only regressor with het is true") print("--------------------------------------------------------------") print("this is the similar to scipy.stats.f_oneway,") print("but variance is not assumed to be the same across groups") res = OneWayLS(y, np.ones(len(y)), groups=groupind.astype(str), het=True) print_results(res) print(res.print_summary()) # (res)
SimpleTable(np.vstack([res.sigmabygroup, np.sqrt(res.sigmabygroup)]), headers=res.unique.tolist())) return templ % resvals #get results for example #----------------------- print '\nTest for equality of coefficients for all exogenous variables' print '-------------------------------------------------------------' res = OneWayLS(y, x, groups=groupind.astype(int)) print_results(res) print '\n\nOne way ANOVA, constant is the only regressor' print '---------------------------------------------' print 'this is the same as scipy.stats.f_oneway' res = OneWayLS(y, np.ones(len(y)), groups=groupind) print_results(res) print '\n\nOne way ANOVA, constant is the only regressor with het is true' print '--------------------------------------------------------------' print 'this is the similar to scipy.stats.f_oneway,' print 'but variance is not assumed to be the same across groups' res = OneWayLS(y, np.ones(len(y)), groups=groupind.astype(str), het=True) print_results(res) print res.print_summary() #(res)