the Ridge regression
model=ridge(x,y,split,lambda,(centred))
calibration dataset; a matrix (n x q) and a vector (n x 1)or Div structures
parameter for the cross-validation:
- an integer: number of random blocs
- two integers [a b]: a random blocks ; b repetitions of the cross-validation
- a vector of dimension n attributing each observation to a block (numbers 1,2,...k for k blocks): blocks given by the vector
- a matrix (n x b ) of column-vectors of dimension n attributing each observation to a block (numbers 1,2,...k for k blocs): blocks given by each vector, b repetitions of the cross-validation
- 'vnbxx': venitian blinds, xx blocks; ex: 'vnb10' for 10 blocks
- 'jckxx': Jack knife, xx blocks; ex: 'jck8' for 8 blocks
a positive scalar or a column vector of positive scalars; if lv scalars, lv models are obtained
centred = 1 (by default); not centred = 0
the standard errors of calibration aand cross-validation
model.err.d is a matrix (lv x 2); the columns are the rmsec and the rmsecv respectively
the predicted values after cross validation
model.ypredcv.d is a matrix (n x lv)
the b coefficients or regression coefficients
model.b.d is a matrix (q x lv)
the scores of the observations onto the loadings
the loadings
means of x and y; a vector (q x 1) and a scalar
1=centred; 0 = not centred
rmsec=model.rmsec.d
rmsecv=model.rmsecv.d
b=model.b.d
ypredcv=model.ypredcv.d