jacobkap / fastDummies

The goal of fastDummies is to quickly create dummy variables (columns) and dummy rows.
https://jacobkap.github.io/fastDummies/
Other
36 stars 9 forks source link

n-1 Dummies #1

Closed benjaminschlegel closed 6 years ago

benjaminschlegel commented 7 years ago

Thanks a lot for the great package, it's very usefull.

Is there a possibility you could add an option that removes the first dummy of every variable that only n-1 Dummies remain? It would be very helpfull for models which need numeric data, but only n-1 Dummies because of perfect multicolinearity.

The code for it:

jacobkap commented 7 years ago

Thanks for your contribution! I'll update the package soon. Would you like to be added as a contributor to the package?

benjaminschlegel commented 7 years ago

If it's not much work for you to add me, that would be nice.

jacobkap commented 7 years ago

Can you send me your email? I can add that to the documentation.

benjaminschlegel commented 7 years ago

kontakt@benjaminschlegl.ch