fosr() when method="OLS",
performs efficient leave-one-function-out cross-validation using Demmler-Reinsch orthogonalization to choose the
smoothing parameter.lofocv(Y, X, S1, lamvec = NULL, constr = NULL, maxlam = NULL)NULL, smoothing parameter is chosen by optimize.lamvec=NULL).lamvec=NULL, a list (returned by optimize) with elements minimum and objective giving, respectively, the chosen smoothing parameter and the associated cross-validation score. Otherwise a 2-column table with the candidate smoothing parameters in the first column and the corresponding cross-validation scores in the second.fosr, pwcv