Skip to content

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

@kenneth-lee-ch

Description

@kenneth-lee-ch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions