Skip to content

Commit

Permalink
doc(fix uncompleted sentence)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-ramirez-lopez committed Jan 18, 2022
1 parent 11b67a6 commit 4b80d03
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 4b80d03

Please sign in to comment.