pub fn regression_depth(
fit: &FregreLmResult,
data: &FdMatrix,
y: &[f64],
scalar_covariates: Option<&FdMatrix>,
n_boot: usize,
depth_type: DepthType,
seed: u64,
) -> Option<RegressionDepthResult>Expand description
Regression depth diagnostics for a linear functional regression.
Computes depth of each observation’s FPC scores and depth of the regression coefficients in a bootstrap distribution.
§Arguments
fit— FittedFregreLmResultdata— Functional data (n × m)y— Response (length n)scalar_covariates— Optional scalar covariatesn_boot— Number of bootstrap iterationsdepth_type— Which depth measure to useseed— Random seed