predict

Function predict 

Source
pub fn predict(x_new: &Matrix, beta0: f64, beta: &[f64]) -> Vec<f64>
Expand description

Computes predictions using unstandardized coefficients.

§Arguments

  • x_new - New data matrix (n_new × p, with intercept column if applicable)
  • beta0 - Intercept on original scale
  • beta - Slope coefficients on original scale

§Returns

Predictions for each row in x_new.