powered by
Given a vector of counts from a contingency table, produce a bootstrap replicate. Sampling zeroes are replaced by 0.5.
boot.table(y,strata=NULL)
A vector of counts with the same total.
is the observed contingency table.
is a vector defining the strata for a stratified bootstrap.
boot.table(c(1,3,4,2)) ## 0.5 2.0 5.0 3.0 boot.table(c(1,3,4,2),c(1,2,1,2)) ## 2 1 3 4
Run the code above in your browser using DataLab