Learn R Programming

generalCorr (version 1.2.6)

cofactor: 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)

Value

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

Arguments

x

matrix whose cofactor is desired to be computed

r

row number

c

column number

Author

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

See Also

minor(x,r,c)

Examples

Run this code

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

Run the code above in your browser using DataLab