Method: Statsample::Test::UMannWhitney#report_building
- Defined in:
- lib/statsample/test/umannwhitney.rb
#report_building(generator) ⇒ Object
:nodoc:
147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/statsample/test/umannwhitney.rb', line 147 def report_building(generator) # :nodoc: generator.section(:name=>@name) do |s| s.table(:name=>_("%s results") % @name) do |t| t.row([_("Sum of ranks %s") % @v1.name, "%0.3f" % @r1]) t.row([_("Sum of ranks %s") % @v2.name, "%0.3f" % @r2]) t.row([_("U Value"), "%0.3f" % @u]) t.row([_("Z"), "%0.3f (p: %0.3f)" % [z, probability_z]]) if @n1*@n2<MAX_MN_EXACT t.row([_("Exact p (Dinneen & Blakesley, 1973):"), "%0.3f" % probability_exact]) end end end end |