Skip to content

Commit

Permalink
Merge branch 'main' into 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
l-ramirez-lopez authored Aug 31, 2022
2 parents 5c5f566 + 9b3ee7a commit 286af38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ orthogonal projections in spectral data.

## Vignette
A new vignette for `resemble` explaining its core functionality is available
at: https://CRAN.R-project.org/package=prospectr/vignettes/vignette.html
at: https://cran.r-project.org/package=resemble/vignettes/resemble.html

## Core functionality

Expand Down

0 comments on commit 286af38

Please sign in to comment.