You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning(paste("R not integer and estimated to ",R,sep=""),
177
177
call.=FALSE)
178
178
}
179
+
if(deflat& is.null(mu)){
180
+
stop("For now, deflation models are built only for the ddsPLS-Ridge models. Please change to ddsPLS-classic models or to ddsPLS-Ridge changing mu parameter to a positive real value.",
#' must be built on. The coefficient lambda regularizes the quality of proximity to the data choosing to forget the least correlated bounds between
470
484
#' \eqn{X} and \eqn{Y} data sets.
471
485
#'
486
+
#' The parameter \strong{weight} allows to penalize the per-block components according to the number of variables selected in each block.
487
+
#'
488
+
#' Parameters \strong{mu} and \strong{deflat} allow to build deflated models but need for more theoretical verifications.
472
489
#'
473
490
#' @param Xs A matrix, if there is only one block, or a list of matrices,, if there is more than one block, of \strong{n} rows each, the number of individuals. Some rows must be missing. The different matrices can have different numbers of columns. The length of Xs is denoted by \strong{K}.
474
491
#' @param Y A matrix of \strong{n} rows of a vector of length \strong{n} detailing the response matrix. No missing values are allowed in that matrix.
475
492
#' @param lambda A real \eqn{[0,1]} where 1 means just perfect correlations will be used and 0 no regularization is used.
476
493
#' @param R A strictly positive integer detailing the number of components to build in the model.
477
494
#' @param L0 An integer non nul parameter giving the largest number of X variables that can be selected.
495
+
#' @param weight Logical. If TRUE, the scores are divided by the number of selected variables of their corresponding block.
478
496
#' @param mu A real positive. The Ridge parameter changing the bias of the regression model. If is NULL, consider the classical ddsPLS. Default to NULL.
479
497
#' @param deflat Logical. If TRUE, the solution uses deflations to construct the weights.
480
-
#' @param weight Logical. If TRUE, the scores are divided by the number of selected variables of their corresponding block.
481
498
#' @param keep_imp_mod Logical. Whether or not to keep imputation \strong{mddsPLS} models. Initialized to \code{FALSE} due to the potential size of those models.
482
499
#' @param mode A character chain. Possibilities are "\strong{(reg,lda,logit)}", which implies regression problem, linear discriminant analysis (through the paclkage \code{MASS}, function \code{lda}) and logistic regression (function \code{glm}). Default is \strong{reg}.
483
500
#' @param NZV Float. The floatting value above which the weights are set to 0.
Copy file name to clipboardExpand all lines: R/perf_mddsPLS.R
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
#' the cross-validation process is made on the given set
5
5
#' of parameters.
6
6
#'
7
+
#' For now, parameter \strong{mu} is included in that function but cannot be cross-validated. It is to the user to build cross-validations for each of the \strong{mu} needed.
8
+
#'
7
9
#' @param Xs A matrix, if there is only one block, or a list of matrices,
8
10
#' if there is more than one block, of \strong{n} rows each, the number of individuals.
9
11
#' Some rows must be missing. The different matrices can have different numbers of columns.
0 commit comments