boot_count_vector_: Boostrap a count vector (Internal)

Description Usage Arguments Value Examples

View source: R/bootstrap.R

Description

Boostrap a count vector (Internal)

Usage

1
boot_count_vector_(x, k = NULL, n = 1)

Arguments

x

(Required) A vector of counts.

k

(Optional) The size of the bootstrap sample. Defaults to sum(x).

n

(Optional) Default 1. An integer indicating the number of boostrap count vectors to return.

Value

A vector or a matrix of n vectors boostrapped from x.

Examples

1
2
3
x <- sample(1:1000)
boot_count_vector_(x, n = 5)
boot_count_vector_(x, k = 100, n = 5)

krisrs1128/mvarVis documentation built on Oct. 13, 2019, 11:14 p.m.