Class: Rust::StatisticalTests::PValueAdjustment::Bonferroni

Inherits:
Object
  • Object
show all
Defined in:
lib/rust/stats/tests.rb

Class Method Summary collapse

Class Method Details

.adjust(*p_values) ⇒ Object



219
220
221
222
223
224
# File 'lib/rust/stats/tests.rb', line 219

def self.adjust(*p_values)
    Rust.exclusive do
        Rust['adjustment.p'] = p_values
        return Rust._pull("p.adjust(adjustment.p, method=\"bonferroni\")")
    end
end