Skip to content

Commit

Permalink
Merge pull request #27 from l-ramirez-lopez/2.1
Browse files Browse the repository at this point in the history
released on CRAN
  • Loading branch information
l-ramirez-lopez authored Jan 26, 2022
2 parents fc240f5 + 4b80d03 commit 7391155
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions R/local_fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@
#'
#' The \code{modified} argument in the pls methods (\code{local_fit_pls()}
#' and \code{local_fit_wapls()}) is used to indicate if
#' a modified version of the pls algorithm (modified pls or mpls). The modified
#' pls was proposed Shenk and Westerhaus (1991, see also Westerhaus, 2014) and it
#' differs from the standard pls method in the way the weights of the predictors
#' (used to compute the matrix of scores) are obtained. While pls uses the covariance
#' between response(s) and predictors (and later their deflated versions
#' corresponding at each pls component iteration) to obtain these weights, the modified pls
#' uses the correlation as weights. The authors indicate that by using correlation,
#' a modified version of the pls algorithm (modified pls or mpls) is to be used.
#' The modified pls was proposed Shenk and Westerhaus
#' (1991, see also Westerhaus, 2014) and it differs from the standard pls method
#' in the way the weights of the predictors (used to compute the matrix of
#' scores) are obtained. While pls uses the covariance between response(s)
#' and predictors (and later their deflated versions corresponding at each pls
#' component iteration) to obtain these weights, the modified pls uses the
#' correlation as weights. The authors indicate that by using correlation,
#' a larger potion of the response variable(s) can be explained.
#'
#' @return An object of class \code{local_fit} mirroring the input arguments.
Expand Down

0 comments on commit 7391155

Please sign in to comment.