Re: [R] Problem with code for bootstrapping chi square test with count data

2007-11-20 Thread Prof Brian Ripley
On Tue, 20 Nov 2007, Geertje Van der Heijden wrote: > Hi, > > I'd like some advice on bootstrapping in R. > > I have a species x with 20 individuals and a factor containing 0 and 1's > (in this case 5 zeros and 15 ones). I want to compare the frequency of > the occurrence of 1 with a probability v

[R] Problem with code for bootstrapping chi square test with count data

2007-11-20 Thread Geertje Van der Heijden
Hi, I'd like some advice on bootstrapping in R. I have a species x with 20 individuals and a factor containing 0 and 1's (in this case 5 zeros and 15 ones). I want to compare the frequency of the occurrence of 1 with a probability value. This code seems to work to do this in R. attach(test) p <-