loocv.dudi: Leave-one-out cross-validation for a 'dudi'

View source: R/loocv.R

loocv.dudiR Documentation

Leave-one-out cross-validation for a dudi


Leave-one-out cross-validation to check the dispersion of row coordinates in a dudi.


## S3 method for class 'dudi'
loocv(x, progress = FALSE, ...)



the dudi of the bca on which cross-validation should be done


logical to display a progress bar during computations (see the progress package)


further arguments passed to or from other methods


This function does a cross-validation of the row coordinates of a dudi. Each row is removed from the table one at a time, and its coordinates are computed by projection of this row in the analysis of the table with the removed row. This can be used to check the sensitivity of an analysis to outliers. The cross-validated and original coordinates can be compared with the s.match function (see example).


A list with:

- XValCoord: the cross-validated row coordinates

- PRESS: the Predicted Residual Error Sum for each row

- PRESSTot: the sum of PRESS for each bca axis


Jean Thioulouse

See Also

loocv.between, loocv.discrimin, suprow, s.match


envpca <- dudi.pca(meaudret$env, scannf = FALSE, nf = 3)
xvpca <- loocv(envpca)
s.match(envpca$li, xvpca$XValCoord)

ade4 documentation built on Feb. 16, 2023, 7:58 p.m.

Related to loocv.dudi in ade4...