R minitip: don’t use data.matrix when you mean model.matrix

Win-Vector Blog 2014-06-10

Summary:

A quick R mini-tip: don’t use data.matrix when you mean model.matrix. If you do so you may lose (without noticing) a lot of your model’s explanatory power (due to poor encoding). For some modeling tasks you end up having to prepare a special expanded data matrix before calling a given machine learning algorithm. For example […]

Link:

http://www.win-vector.com/blog/2014/06/r-minitip-dont-use-data-matrix-when-you-mean-model-matrix/?utm_source=rss&utm_medium=rss&utm_campaign=r-minitip-dont-use-data-matrix-when-you-mean-model-matrix

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

practical data science pragmatic data science pragmatic machine learning statistics tutorials factors impact coding model.matrix r

Authors:

John Mount

Date tagged:

06/10/2014, 17:30

Date published:

06/10/2014, 14:42