Skip to content
Prev 281024 / 398503 Next

regarding QRb() function

2011/12/28 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
and also spell "select" correctly in

 y <- subset(data,select=10)

or, more simply, specify

X <- data[, -10]
y <- data[, 10]

It is not clear if the function you are using requires X to be a
matrix, like a model matrix, or a data frame.  If it expects a matrix
use

X <- data.matrix(data[, -10])