get_dummy: Non-Metric Dummy

View source: R/get_dummies.r

get_dummyR Documentation

Non-Metric Dummy

Description

Internal function. get_dummy is called by get_dummies. Transforms a vector of natural numbers from 1 to p into the corresponding p x p dummy matrix

Usage

  get_dummy(x)

Arguments

x

a vector whose elements are non-negative integers from 0 to p

Value

the dummy matrix


gastonstat/plspm documentation built on April 8, 2022, 5:59 a.m.