cofactor: Compute cofactor of a matrix based on row r and column c.

View source: R/cofactor.R

cofactorR Documentation

Compute cofactor of a matrix based on row r and column c.

Description

Compute cofactor of a matrix based on row r and column c.

Usage

cofactor(x, r, c)

Arguments

x

matrix whose cofactor is desired to be computed

r

row number

c

column number

Value

cofactor of x, w.r.t. row r and column c.

Note

needs the function 'minor” in memory. attaches sign (-1)^(r+c) to the minor.

Author(s)

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

See Also

minor(x,r,c)

Examples


## The function is currently defined as
function (x, r, c) 
{
    out = minor(x, r, c) * ((-1)^(r + c))
    return(out)
  }

generalCorr documentation built on Oct. 10, 2023, 1:06 a.m.