Skip to main content

stepwise_backward

Function stepwise_backward 

Source
pub fn stepwise_backward(
    x: &[f64],
    y: &[f64],
    n: usize,
    p: usize,
    exit_alpha: f64,
    max_steps: usize,
) -> Option<StepwiseResult>
Expand description

Backward elimination: drop the predictor with largest p-value while p > exit_alpha, bounded by max_steps. Always records exploratory: true.