Re: [R] R function help!

2013-02-18 Thread Rolf Turner
Pete: Please don't do people's homework for them! At most, give them a ***hint*** only. cheers, Rolf Turner On 02/19/2013 12:01 PM, Pete Brecknock wrote: simonj16 wrote Consider an urn that contains 10 tickets, labelled: 1,1,1,1,2,5,5,10,10,10 I want to draw with replacement n=

Re: [R] R function help!

2013-02-18 Thread Pete Brecknock
simonj16 wrote > Consider an urn that contains 10 tickets, labelled: 1,1,1,1,2,5,5,10,10,10 > > I want to draw with replacement n=40 tickets. I am interested in the sum, > Y, of the 40 ticket values that I draw > > Write an R function named urn.model that simulates this experiement. What > I have