Re: [R] Adding noise

2010-11-30 Thread Ben Bolker
Jim Silverton gmail.com> writes: > > Hello, > I have some discrete pvalues and I would like to sort them. Then add random > noise so that they are ordered the same way as the original pvalues. Off > course I don't want any pvalues less than 0 or greater than 1. Any ideas on > how to do this in R

Re: [R] Adding noise

2010-11-30 Thread Bert Gunter
Why? -- Bert (This is not an idle question: What kind of "random noise" do you wish to add? Normal? Uniform? ... Once answered, this is trivial to do. However, I expect that if you explain why you want to do this, the answer will be: don't) On Tue, Nov 30, 2010 at 11:01 AM, Jim Silverton wrot

Re: [R] Adding noise

2010-11-30 Thread Jim Silverton
Hello, I have some discrete pvalues and I would like to sort them. Then add random noise so that they are ordered the same way as the original pvalues. Off course I don't want any pvalues less than 0 or greater than 1. Any ideas on how to do this in R? -- Thanks, Jim. [[alternative HTML