Skip to main content

power_divergence

Function power_divergence 

Source
pub fn power_divergence(
    x_values: &Array1<f64>,
    y_values: &Array1<f64>,
    z: &Array2<f64>,
    boolean: bool,
    significance_level: f64,
    lambda: f64,
) -> Result<TestResult>
Expand description

Run a power-divergence based conditional independence test.

ยงErrors

Returns an error if the inputs are invalid or if the underlying contingency test or chi-squared distribution construction fails.