disj {StratifiedSampling}R Documentation

Disjunctive

Description

This function transforms a categorical vector into a matrix of indicators.

Usage

disj(strata_input)

Arguments

strata_input

A vector of integers that represents the categories.

Value

A matrix of indicators.

Examples

strata <- rep(c(1,2,3),each = 4)
disj(strata)


[Package StratifiedSampling version 0.4.2 Index]