Nothing
#' Internal Rank Estimation Function
#'
#' @inheritParams fct_gamma
#' @param sigma An estimated noise level.
#' @param eta A rank selection parameter.
#'
#' @keywords internal
#'
#' @importFrom MASS ginv
#'
#' @return The estimated rank.
#'
fct_rank <- function(x, y, sigma, eta){
m <- t(x)%*%x
m_inv <- MASS::ginv(m)
p <- x%*%m_inv%*%t(x)
sv <- svd(p%*%y)$d
max(which(sv >= sigma*eta))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.