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

Description Usage Arguments Value Note Author(s) Examples

Description

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

Usage

1
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

Examples

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


Search within the generalCorr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.