Re: [R] Random sampling while keeping distribution of nearest neighbor distances constant.

2009-08-12 Thread Emmanuel Levy
> But if the 1st order differences are the same, then doesn't it follow that > the 2nd, 3rd, ... order differences must be the same between the original and > the new "random" vector.  What am I missing? You are missing nothing sorry, I wrote something wrong. What I would like to be preserved is

Re: [R] Random sampling while keeping distribution of nearest neighbor distances constant.

2009-08-12 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: Emmanuel Levy [mailto:emmanuel.l...@gmail.com] > Sent: Wednesday, August 12, 2009 4:48 PM > To: Nordlund, Dan (DSHS/RDA) > Cc: r-h...@stat.math.ethz.ch; dev djomson > Subject: Re: [R] Random sampling while keeping distribution of nearest >

Re: [R] Random sampling while keeping distribution of nearest neighbor distances constant.

2009-08-12 Thread Emmanuel Levy
sday, August 12, 2009 3:05 PM >> To: r-h...@stat.math.ethz.ch >> Cc: dev djomson >> Subject: [R] Random sampling while keeping distribution of nearest neighbor >> distances constant. >> >> Dear All, >> >> I cannot find a solution to the following probl

Re: [R] Random sampling while keeping distribution of nearest neighbor distances constant.

2009-08-12 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Emmanuel Levy > Sent: Wednesday, August 12, 2009 3:05 PM > To: r-h...@stat.math.ethz.ch > Cc: dev djomson > Subject: [R] Random sampling while keeping di

[R] Random sampling while keeping distribution of nearest neighbor distances constant.

2009-08-12 Thread Emmanuel Levy
Dear All,(my apologies if it got posted twice, it seems it didn't get through) I cannot find a solution to the following problem although I suppose this is a classic. I have a vector V of X=length(V) values comprised between 1 and N. I would like to get random samples of X values also compri

[R] Random sampling while keeping distribution of nearest neighbor distances constant.

2009-08-12 Thread Emmanuel Levy
Dear All, I cannot find a solution to the following problem although I imagine that it is a classic, hence my email. I have a vector V of X values comprised between 1 and N. I would like to get random samples of X values also comprised between 1 and N, but the important point is: * I would like