partition: Partition Observations

Description Usage Arguments Value

View source: R/utils.R

Description

Partition a set of observations (ON [-1,1] !) such that each subset contains the same number of observations.

Usage

1
partition(x, num_div)

Arguments

x

The observations to partition.

num_div

The number of times to bisect each subset i.e. if num_div = 5 the partiton contains 2^5 subsets.

Value

A matrix where each row contains the boundaries of each disjoint subset.


dfcorbin/MABsim documentation built on April 26, 2020, 8:26 a.m.