|
28 | 28 | #' @param y Numeric matrix giving log-intensity where missing values are denoted by NA. Rows are peptides, columns are samples. |
29 | 29 | #' @param method Character. Allowed values are \code{"v2"} for \code{msImputev2} imputation (enhanced version) for MAR. |
30 | 30 | #' \code{method="v2-mnar"} (modified low-rank approx for MNAR), and \code{"v1"} initial release of \code{msImpute}. |
31 | | -#' @param group Character or factor vector of length \code{ncol(y)}. DEPRICATED. Please specify the \code{design} argument. |
| 31 | +#' @param group Character or factor vector of length \code{ncol(y)}. DEPRECATED. Please specify the \code{design} argument. |
32 | 32 | #' @param design Object from model.matrix(); A zero-intercept design matrix (see example). |
33 | 33 | #' @param alpha Numeric. The weight parameter. Default to 0.2. Weights the MAR-imputed distribution in the imputation scheme. DEPRECATED |
34 | 34 | #' @param rank.max Numeric. This restricts the rank of the solution. is set to min(dim(\code{y})-1) by default in "v1". |
@@ -130,7 +130,7 @@ msImpute <- function(y, method=c("v2-mnar", "v2", "v1"), |
130 | 130 | yimp <- msImputev1(y, rank.max = rank.max , lambda = estimateLambda(y, rank = rank.max)) # |
131 | 131 | if (method == "v2-mnar"){ |
132 | 132 | message(paste("Compute barycenter of MAR and NMAR distributions", method)) |
133 | | - if (!is.null(group) & is.null(design)) stop("'group' argument is depricated. Please specify the 'design' argument.") |
| 133 | + if (!is.null(group) & is.null(design)) stop("'group' argument is deprecated. Please specify the 'design' argument.") |
134 | 134 | if (is.null(group) & is.null(design)) stop("Please specify the 'design' argument. This is required for the 'v2-mnar' method.") |
135 | 135 | ygauss <- gaussimpute(y, width = gauss_width, shift = gauss_shift) |
136 | 136 | # yimp <- l2bary(y=y, ygauss = ygauss, yerank = yimp, group = group, a=alpha) |
|
0 commit comments