get_dummy: Non-Metric Dummy

Description Usage Arguments Value

View source: R/get_dummies.r

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

1

Arguments

x

a vector whose elements are all the natural numbers from 1 to p

Value

the dummy matrix


gastonstat/plspm2 documentation built on May 16, 2019, 5:47 p.m.