boot.table | R Documentation |
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)
y |
is the observed contingency table. |
strata |
is a vector defining the strata for a stratified bootstrap. |
A vector of counts with the same total.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.