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

Object with PLS-DA results must also have class regres #95

Closed
svkucheryavski opened this issue Jan 20, 2021 · 0 comments
Closed

Object with PLS-DA results must also have class regres #95

svkucheryavski opened this issue Jan 20, 2021 · 0 comments
Labels
Milestone

Comments

@svkucheryavski
Copy link
Owner

Since PLS-DA is based on PLS regression, object for PLS-DA results contains all results from the corresponding regression model. To use this possibility, this object should also has class regres. Here is the code, which reproduces the problem

data(people)
X <- people[, -c(3, 9)]
c <- as.factor(people[, 9])

m <- plsda(X, c, 3, cv = 1)

plotRMSE(m)
plotPredictions.regmodel(m)

plotRMSE() raises an error and plotPredictions() shows wrong results.

@svkucheryavski svkucheryavski added this to the 0.11.3 milestone Jan 20, 2021
svkucheryavski added a commit that referenced this issue Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant