[R] randomisation
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Wed Feb 9 13:58:42 CET 2005
"Yann Clough" <y.clough at NS1.uaoe.gwdg.de> writes:
> Dear useRs
>
> I am looking for a way to randomise the values within a matrix:
> the conditions are that the sums of the rows and the sums of the columns should
> remain the same as in the original matrix.
>
> Any help would be appreciated
Er, explain further... Are you shuffling around constant numbers (as
in the 0/1 values in item analysis) or can they be integers of varying
magnitude (as in coloured-balls-in-urns), or ?
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list