Error with qe(): handling one predictor and one response variable
kenneth-lee-ch opened this issue · 1 comments
kenneth-lee-ch commented
What is the issue?
Improper handling of the data frame with only 1 predictor variable and 1 response variable.
Steps to reproduce the error
data(peFactors)
names(peFactors)
pef <- peFactors[,c(1,8)]
lmout <- qeLin(pef , 'wageinc')
parvsnonparplot(lmout,qeKNN(pef , 'wageinc', 25))
Expected error
1. error message from qeLin()
Error in eval(predvars, data, env) :
numeric 'envir' arg not of length one
2 error message from qeKNN()
Error in getXY(newx, NULL, TRUE, FALSE, object$factorsInfo) :
data must be a data frame
matloff commented
Fixed, thanks for pointing it out.