Re: [R] simulated data using empirical distribution

2007-10-11 Thread Daniel Lakeland
On Thu, Oct 11, 2007 at 07:30:16AM -0400, tom sgouros wrote: > > Hello all: > > Many thanks to the people who have responded to my question, on and > off-list. My problem isn't completely solved, though, and perhaps you > can help again. > > The problem, again, is that I have what is essentiall

Re: [R] simulated data using empirical distribution

2007-10-11 Thread Greg Snow
> [mailto:[EMAIL PROTECTED] On Behalf Of tom sgouros > Sent: Thursday, October 11, 2007 5:30 AM > To: r-help@r-project.org > Subject: Re: [R] simulated data using empirical distribution > > > Hello all: > > Many thanks to the people who have responded to my question, &

Re: [R] simulated data using empirical distribution

2007-10-11 Thread tom sgouros
Hello all: Many thanks to the people who have responded to my question, on and off-list. My problem isn't completely solved, though, and perhaps you can help again. The problem, again, is that I have what is essentially a histogram, but not the underlying data, and I want to simulate data that

Re: [R] simulated data using empirical distribution

2007-10-10 Thread Dieter Menne
Tom Sgouros as220.org> writes: > What I have is twelve bins of data, and the population > in each bin. The top bin is open-ended, and the whole distribution is > more or less poisson-ish. > > I can think of a couple of ways to fake this ok, but is there a real R > way to do it? > hist(rpois(

Re: [R] simulated data using empirical distribution

2007-10-10 Thread Daniel Lakeland
On Wed, 2007-10-10 at 10:13 -0400, Tom Sgouros wrote: > Hello all: > > I'm sure this is a trivial request, but I'm still a beginner at this, > and haven't been able to find it. I need to create simulated data based > on some empirical distributions of a single variable. I've found R > functions

[R] simulated data using empirical distribution

2007-10-10 Thread Tom Sgouros
Hello all: I'm sure this is a trivial request, but I'm still a beginner at this, and haven't been able to find it. I need to create simulated data based on some empirical distributions of a single variable. I've found R functions to help me simulate data based on analytical distributions, or to