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

Predicted Values #2

Open
retsej22 opened this issue Jan 10, 2018 · 2 comments
Open

Predicted Values #2

retsej22 opened this issue Jan 10, 2018 · 2 comments

Comments

@retsej22
Copy link

There is a one issue about predicted values in candisc.

data(iris)
iris.mod = lm(cbind(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width)~Species,data=iris)
iris.can = candisc(iris.mod, data=iris)
pred = predict(iris.can)
Error in UseMethod("predict") :
no applicable method for 'predict' applied to an object of class "candisc"

I try same thing with MASS lda
iris.lda = lda(iris[,1:4],iris$Species,data=iris)
pred = predict(iris.lda)
iris.table = table(iris$Species,pred$class)
iris.table
rstudio_2018-01-10_15-46-43

it gives this table.

You can add this function in your package.

@friendly
Copy link
Owner

Thanks; I'll look into this.

@john-d-fox
Copy link
Collaborator

john-d-fox commented Jan 11, 2018 via email

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

3 participants