R/GINV.R

Defines functions GINV

#' @name GINV
#' @title Title.
#' @description Description.
#' @param M blabla
#' @return blabla
#' @author Willem Kruijer \email{willem.kruijer@@wur.nl}
#' @details blabla.
#' @examples blabla.
#' @export
GINV    <- function(M) {
  svdM    <- svd(M)
  return(svdM$v %*%diag(1/svdM$d)%*% t(svdM$u))
}

Try the heritability package in your browser

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

heritability documentation built on Aug. 24, 2023, 9:08 a.m.