[R] Re : Generate a random bistochastic matrix

Richard M. Heiberger rmh at temple.edu
Mon Oct 16 16:23:39 CEST 2006


I am sorry, I can't figure out what your function is doing.
Why do you have N^4 in the argument?  A matrix should have
N rows and N columns, that is, it should have length N^2.

The function returns a vector, not a matrix.

There is no example of its use.

I am guessing that your function somewhere uses a bistochastic matrix
as an intermediate calculation.  I recommend isolating the bistochastic
matrix function from the larger function that you have constructed.

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list