Method: Statsample::DominanceAnalysis::Bootstrap#summary_pairs

Defined in:
lib/statsample/dominanceanalysis/bootstrap.rb

#summary_pairs(pair, std, ttd) ⇒ Object


218
219
220
221
222
223
224
225
# File 'lib/statsample/dominanceanalysis/bootstrap.rb', line 218

def summary_pairs(pair,std,ttd)
    freqs=std.proportions
    [0, 0.5, 1].each{|n|
        freqs[n]=0 if freqs[n].nil?
    }
    name="%s - %s" % [@ds[pair[0]].name, @ds[pair[1]].name]
    [name,f(ttd,1),f(std.mean,4),f(std.sd),f(freqs[1]), f(freqs[0]), f(freqs[0.5]), f(freqs[ttd])]
end