Closed carbonmetrics closed 1 year ago
page 47:
w <- qeROC(tc,knnout,'Churn','Yes')
but this does not work, because the function has 3 arguments instead of 4: function (dataIn, qeOut, yLevelName)
function (dataIn, qeOut, yLevelName)
the example works with: w = qeROC(dataIn = tc, qeOut = knnout, yLevelName = "Yes")
w = qeROC(dataIn = tc, qeOut = knnout, yLevelName = "Yes")
but that inverts the curve. works as foreseen via w = qeROC(dataIn = tc, qeOut = knnout, yLevelName = "No")
w = qeROC(dataIn = tc, qeOut = knnout, yLevelName = "No")
btw - the no-show data set page 42 footnote 3 has the problem that the original Y name = "No-show", which is invalid in R.
Thanks so much for uncovering this error in the book. The 'yName' argument should not be in the calls. I've now added an entry to the Errata file.
page 47:
w <- qeROC(tc,knnout,'Churn','Yes')
but this does not work, because the function has 3 arguments instead of 4:
function (dataIn, qeOut, yLevelName)
the example works with:
w = qeROC(dataIn = tc, qeOut = knnout, yLevelName = "Yes")
but that inverts the curve. works as foreseen via
w = qeROC(dataIn = tc, qeOut = knnout, yLevelName = "No")
btw - the no-show data set page 42 footnote 3 has the problem that the original Y name = "No-show", which is invalid in R.