Re: [R] sample size estimation for count (poisson?) data?

2008-11-13 Thread David Winsemius
The notion that you can just add or subtract 0.03 from estimate is obviously incorrect. Presuming you meant to call you lower bound q05 and the upper bound q95, the numbers I get are in your 10,000 iteration loop are 4.97 and 5.18 (around a mean of 5.08). So roughly a .1 swing on each side

Re: [R] sample size estimation for count (poisson?) data?

2008-11-13 Thread Shawn Morrison
Thanks. I did the search before I posted and found those threads. However, it does not seem to do what I want. All I want to do is estimate the sample size for a point estimate, not do a GLM. I just want the mean within a margin of error, and to a given CI. I've tried writing some code to

Re: [R] sample size estimation for count (poisson?) data?

2008-11-12 Thread David Winsemius
The first hit for search on sample size and poisson on Baron's search engine web interface appears on target: http://search.r-project.org/cgi-bin/namazu.cgi?query=%22sample+size%22+poissonmax=100result=normalsort=scoreidxname=functionsidxname=Rhelp02a Getting the same result from your console