R/svdtransfunctions.R

## Transform results based on sigular value decomposition: coefficients
svdtranscoef <- function (coef, svdx) {
  c(solve(diag(svdx$d) %*% t(svdx$v)) %*% coef)
}

## Derivatives of the SVDed beta
deriv_svdtranscoef <- function (svdx) {
  solve(diag(svdx$d) %*% t(svdx$v))
}

Try the dbw package in your browser

Any scripts or data that you put into this service are public.

dbw documentation built on Sept. 11, 2024, 6:50 p.m.