powered by
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
get_dummy
get_dummies
get_dummy(x)
the dummy matrix
a vector whose elements are non-negative integers from 0 to p