Re: [R] Resampling with replacement on a binary (0, 1) dataset to get Cis

2011-12-02 Thread lincoln
Thanks. Anyway, it is not homework and I was not told to do that. My question has not been answered yet, I'll try to reformulate it: Does it make (statistical) sense to resample with replacement in this situation to get an estimate of the CIs? In case it does, how could I do it in R? Some further

Re: [R] Resampling with replacement on a binary (0, 1) dataset to get Cis

2011-12-02 Thread David Winsemius
On Dec 2, 2011, at 3:55 AM, lincoln wrote: Thanks. Anyway, it is not homework and I was not told to do that. My question has not been answered yet, I'll try to reformulate it: Does it make (statistical) sense to resample with replacement in this situation to get an estimate of the CIs? In

[R] Resampling with replacement on a binary (0, 1) dataset to get Cis

2011-12-01 Thread lincoln
...is it possible to do that? I apologize for something that must be a very trivial question for most of you but, unfortunately, it is not for me. A binary variable is measured, say, 50 times each year during 10 year. My interest is focused on the percentage of 1s with respect to the total if

Re: [R] Resampling with replacement on a binary (0, 1) dataset to get Cis

2011-12-01 Thread David Winsemius
On Dec 1, 2011, at 6:34 AM, lincoln wrote: ...is it possible to do that? I apologize for something that must be a very trivial question for most of you but, unfortunately, it is not for me. A binary variable is measured, say, 50 times each year during 10 year. My interest is focused on

Re: [R] Resampling with replacement on a binary (0, 1) dataset to get Cis

2011-12-01 Thread lincoln
Thanks. So, suppose for one specific year (first year over 10) the percentage of successes deriving from 100 trials with 38 successes (and 62 failures), its value would be 38/100=0.38. I could calculate its confidence intervals this way: success-38 total-100

Re: [R] Resampling with replacement on a binary (0, 1) dataset to get Cis

2011-12-01 Thread David Winsemius
On Dec 1, 2011, at 10:49 AM, lincoln wrote: Thanks. So, suppose for one specific year (first year over 10) the percentage of successes deriving from 100 trials with 38 successes (and 62 failures), its value would be 38/100=0.38. I could calculate its confidence intervals this way: