Skip to content
Snippets Groups Projects
Select Git revision
  • 807896a74e148bee014f8891ddc9c61313fd5010
  • master default protected
  • v2.1.1
  • v2.1.0
4 results

is_fullrank.Rd

Blame
  • aduvermy's avatar
    Arnaud Duvermy authored
    807896a7
    History
    is_fullrank.Rd 968 B
    % Generated by roxygen2: do not edit by hand
    % Please edit documentation in R/fitmodel.R
    \name{is_fullrank}
    \alias{is_fullrank}
    \title{Check if a Model Matrix is Full Rank}
    \usage{
    is_fullrank(metadata, formula)
    }
    \arguments{
    \item{metadata}{The metadata used to create the model matrix.}
    
    \item{formula}{The formula used to specify the model matrix.}
    }
    \value{
    \code{TRUE} if the model matrix is full rank, \code{FALSE} otherwise.
    }
    \description{
    This function checks whether a model matrix is full rank, which is essential for
    certain statistical analyses. It computes the eigenvalues of the crossproduct
    of the model matrix and determines if the first eigenvalue is positive and if
    the ratio of the last eigenvalue to the first is within a defined tolerance.
    }
    \details{
    This function is inspired by a similar function found in the Limma package.
    }
    \examples{
    metadata <- data.frame(x = rnorm(10), y = rnorm(10))
    formula <- y ~ x
    is_fullrank(metadata, formula)
    
    
    }