Re: [R] Statistical question: one-sample binomial test for clustered data

2008-11-25 Thread Thomas Lumley
The bootstrap that Greg Snow suggested is probably the best approach, but it is possible to estimate the variance of the proportion. The total T number of yes reponses is the sum of twenty totals for blocks, and these are independent, so the variance of Y is 20 times the variance of these tw

Re: [R] Statistical question: one-sample binomial test for clustered data

2008-11-25 Thread Greg Snow
I don't have a good reference for you, but here are a couple of things that you could try: 1. Do a bootstrap estimation of p by resampling the blocks of 5 (rather than the individual observations) and see if the hypothesized p is in the confidence interval. 2. Simulate data using the hypothe