Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with qe(): handling one predictor and one response variable #8

Open
kenneth-lee-ch opened this issue Nov 6, 2020 · 1 comment

Comments

@kenneth-lee-ch
Copy link
Collaborator

kenneth-lee-ch commented Nov 6, 2020

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

Screenshot 2020-11-06 at 12 59 08 AM

@kenneth-lee-ch kenneth-lee-ch changed the title Handling one predictor and one response variable Error with qe(): handling one predictor and one response variable Nov 6, 2020
@matloff
Copy link
Owner

matloff commented Nov 6, 2020

Fixed, thanks for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants