Yes, you're right. In fact, it's just an adaptation of a matlab command and the 
author advises using N^4 replications that's why it's the default in the 
function. The bistochastic matrix is not my subject of interest, but I need it 
to perform some random tranformation of a vector of incomes.

Florent Bresson

----- Message d'origine ----
De : Richard M. Heiberger <[EMAIL PROTECTED]>
À : Florent Bresson <[EMAIL PROTECTED]>; r-help@stat.math.ethz.ch
Envoyé le : Lundi, 16 Octobre 2006, 16h23mn 39s
Objet : Re: Re : [R] Generate a random bistochastic matrix

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.

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to