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

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

Overview

Bonferroni p-value adjustment method.

Class Method Summary collapse

Class Method Details

.adjust(*p_values) ⇒ Object



296
297
298
299
300
301
# File 'lib/rust/stats/tests.rb', line 296

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