split_blocks: To create the blocks for bootstrapping

View source: R/split_blocks.R

split_blocksR Documentation

To create the blocks for bootstrapping

Description

A function to create the blocks for block bootstrapping

Usage

split_blocks(x, m)

Arguments

x

vector to split

m

the block length

Value

a list of blocks, where each element of the list has length m

Examples

x <- 1:10
split_blocks(x, 2)
split_blocks(x, 3)
split_blocks(x, 4)

ChandlerLutz/CLmisc documentation built on Dec. 2, 2022, 12:40 p.m.