boot.table: Produce one bootstrap replicate of a vector of counts

View source: R/gllm.R

boot.tableR Documentation

Produce one bootstrap replicate of a vector of counts

Description

Given a vector of counts from a contingency table, produce a bootstrap replicate. Sampling zeroes are replaced by 0.5.

Usage

boot.table(y,strata=NULL) 

Arguments

y

is the observed contingency table.

strata

is a vector defining the strata for a stratified bootstrap.

Value

A vector of counts with the same total.

Examples

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

gllm documentation built on Oct. 18, 2022, 9:06 a.m.

Related to boot.table in gllm...