search for: cswafun

Displaying 2 results from an estimated 2 matches for "cswafun".

2005 May 04
1
stratified bootstrap with boot
...ows: 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, strata = treat) Bootstrap Statistics : original bias std. error t1*...
2005 Apr 29
0
problem with strata in boot
...he number of bird pairs. Each site has been classified as burned or mowed and for each of these two strata I would like to determine the precision of an overall density estimate. I can run an unstratified bootstrap without problem, but when I specify the strata I get the same unstratified result. cswafun <- function(denboot, i) sum(cswa[i])/(sum(parea[i]) attach(denboot) cswa.boot <- boot(denboot, cswafun, R = 10000, strata = treat) ### cswa is a vector of integers representing the number of pairs/site parea is a numeric vector of the size of each study site treat is a character vector of ...