cofactor | R Documentation |
Compute cofactor of a matrix based on row r and column c.
cofactor(x, r, c)
x |
matrix whose cofactor is desired to be computed |
r |
row number |
c |
column number |
cofactor of x, w.r.t. row r and column c.
needs the function 'minor” in memory. attaches sign (-1)^(r+c) to the minor.
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
minor(x,r,c)
## The function is currently defined as
function (x, r, c)
{
out = minor(x, r, c) * ((-1)^(r + c))
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.