Displaying 1 result from an estimated 1 matches for "bullm".
Did you mean:
  bull
  
2005 May 04
1
stratified bootstrap with boot
...I have tried to make it more clear. My data frame
(denboot) is set up as follows:
        SITE cswa parea treat
1      BeanA    3  1.20     m
2     BeanBC    3  1.05     m
3      BeanD    1  0.93     m
4     BlackB    1  1.01     m
5     Brooks    3  4.00     b
6      BullL    3  1.32     b
7      BullM    1  0.20     m
8      BullU    4  2.06     b
...
#Here is my code:
cswafun <- function(denboot, i) sum(cswa[i])/(sum(parea[i])
attach(denboot)
cswa.boot <- boot(denboot, cswafun, R = 10000, strata = treat)
#Here is the output
Call:
boot(data = denboot, statistic = cswafun, R = 10000, st...