sample.freqtab | R Documentation |
An extension of sample
to objects of class
“freqtab
” for bootstrap sampling.
sample.freqtab(x, size = sum(x), replace = TRUE)
x |
object of class “ |
size |
non-negative integer giving the sample size. |
replace |
logical with default |
A table array, as a “freqtab
” object, sampled
from the original x
.
Anthony Albano tony.d.albano@gmail.com
table
, ftable
,
summary.freqtab
, plot.freqtab
# Sample with replacement from ACT math and compare results set.seed(2021) rx <- as.freqtab(ACTmath[, 1:2]) rxs <- sample.freqtab(rx) summary(rx) summary(rxs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.