disj: Disjunctive

View source: R/RcppExports.R

disjR Documentation

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.

Author(s)

Raphaël Jauslin raphael.jauslin@unine.ch

Examples

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


StratifiedSampling documentation built on Oct. 26, 2022, 5:09 p.m.