class Rsquared::StatTest
Attributes
pvalue[RW]
Public Instance Methods
inspect()
click to toggle source
# File lib/Rsquared/StatTest.rb, line 12 def inspect @pvalue end
setSidedness!(sided)
click to toggle source
Modifies p-value to account for tails and/or two-sided tests
# File lib/Rsquared/StatTest.rb, line 20 def setSidedness!(sided) if sided == Upper.tail then @pvalue = 1.0-@pvalue elsif sided == Two.sided then @pvalue = [(1.0-@pvalue)*2.0, @pvalue*2.0].min end end
significant?(alpha=0.05)
click to toggle source
# File lib/Rsquared/StatTest.rb, line 4 def significant?(alpha=0.05) if @pvalue < alpha then return true else return false end end