Re: [R] boot with strata: strata argument ignored?

2010-06-26 Thread Charles C. Berry
On Sat, 26 Jun 2010, Bryan Hanson wrote: Thanks Chuck, I understand much better what is going on with your example. But I'm still uncertain why the b2$t array does not have the dimensions of R x no. of strata. Because the test statistic returned by mm() is a scalar. It has nothing to do with

Re: [R] boot with strata: strata argument ignored?

2010-06-26 Thread Bryan Hanson
Thanks Chuck, I understand much better what is going on with your example. But I'm still uncertain why the b2$t array does not have the dimensions of R x no. of strata. Any further insight would be appreciated. Bryan * Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry De

Re: [R] boot with strata: strata argument ignored?

2010-06-26 Thread Charles C. Berry
On Sat, 26 Jun 2010, Bryan Hanson wrote: Hello All. I must be missing the really obvious here: mm <- function(d, i) median(d[i]) b1 <- boot(gravity$g, mm, R = 1000) b1 b2 <- boot(gravity$g, mm, R = 1000, strata = gravity$series) b2 Both b1 and b2 seem to have done (almost) the same thing, but

[R] boot with strata: strata argument ignored?

2010-06-26 Thread Bryan Hanson
Hello All. I must be missing the really obvious here: mm <- function(d, i) median(d[i]) b1 <- boot(gravity$g, mm, R = 1000) b1 b2 <- boot(gravity$g, mm, R = 1000, strata = gravity$series) b2 Both b1 and b2 seem to have done (almost) the same thing, but it looks like the strata argument in b2 has