rdf_from_matrices: Fast approximate residual degrees of freedom

View source: R/rdf_functions.R

rdf_from_matricesR Documentation

Fast approximate residual degrees of freedom

Description

Defining H = A^TA + B^TB where A and B are low rank, compute n - 2tr(H) + tr(HH) in O(np^2) instead of O(n^2p^2).

Usage

rdf_from_matrices(A, B)

Arguments

A

a matrix or sparseMatrix

B

a matrix or sparseMatrix

See Also

rdf.merMod


GabrielHoffman/variancePartition documentation built on June 19, 2024, 1:29 p.m.