Learn R Programming

plspm (version 0.5.1)

get_dummy: 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)

Value

the dummy matrix

Arguments

x

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