Method: Statsample::Anova::TwoWay#report_building_table
- Defined in:
- lib/statsample/anova/twoway.rb
#report_building_table(builder) ⇒ Object
:nodoc:
97 98 99 100 101 102 103 104 105 |
# File 'lib/statsample/anova/twoway.rb', line 97 def report_building_table(builder) #:nodoc: builder.table(:name=>_("%s Table") % @name, :header=>%w{source ss df ms f p}.map {|v| _(v)}) do |t| t.row([@name_a, "%0.3f" % @ss_a, @df_a, "%0.3f" % @ms_a , "%0.3f" % f_a, "%0.4f" % f_a_probability] ) t.row([@name_b, "%0.3f" % @ss_b, @df_b, "%0.3f" % @ms_b , "%0.3f" % f_b, "%0.4f" % f_b_probability] ) t.row(["%s X %s" % [@name_a, @name_b], "%0.3f" % @ss_axb, @df_axb, "%0.3f" % @ms_axb , "%0.3f" % f_axb, "%0.4f" % f_axb_probability] ) t.row([@name_within, "%0.3f" % @ss_within, @df_within, nil,nil,nil] ) t.row([_("Total"), "%0.3f" % @ss_total, @df_total, nil,nil,nil] ) end end |