Dear R-help list,
Pls I have this problem. Suppose I have a matrix of size nxn say, generated as
follows
z<-matrix(rnorm(n*n,0,1),nrow=n)
I want to write a function such that for i in 1:n, I will remove the rows and
columns
corresponding to i (so, will be left with n-1*n-1 submatrix in each cases). Now
I need
the sum of the determinant of each of this submatrices. As an example, if n=3,
it means I will have det(1strow and 1stcolum removed) + det(2ndrow and 2ndcolum
removed) + det(3rdrow and 3rdcolum removed).
Any help will be appreciated. Thanks
John
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.