Learn R Programming

StratifiedSampling (version 0.1.0)

disj: Disjunctive

Description

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

Usage

disj(strata)

Arguments

strata

A vector of integers that represents the categories.

Value

A matrix of indicators.

Examples

Run this code
# NOT RUN {
strata <- rep(c(1,2,3),each = 4)
disj(strata)

# }

Run the code above in your browser using DataLab