R/project.R

Defines functions project

Documented in project

#' @title Project operatior
#' @description 
#' To calculate projection of a matrix
#' @param x a numeric vector
#' @export
#' @keywords internal
project <- function(X) {
  # projection
  Y = X %*% ginv(t(X) %*% X) %*% t(X)
}

Try the multigroup package in your browser

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

multigroup documentation built on March 26, 2020, 5:50 p.m.