candisc icon indicating copy to clipboard operation
candisc copied to clipboard

Predicted Values

Open retsej22 opened this issue 7 years ago • 2 comments

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.

retsej22 avatar Jan 10 '18 12:01 retsej22

Thanks; I'll look into this.

friendly avatar Jan 10 '18 13:01 friendly

Hi Michael,

We're currently on the road on our way to Florida, arriving Friday night. Let me know if you need me to do something about this.

Best, John

-----Original Message----- From: Michael Friendly [mailto:[email protected]] Sent: Wednesday, January 10, 2018 8:34 AM To: friendly/candisc [email protected] Cc: Subscribed [email protected] Subject: Re: [friendly/candisc] Predicted Values (#2)

Thanks; I'll look into this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/friendly/candisc/issues/2#issuecomment-356603309 , or mute the thread <https://github.com/notifications/unsubscribe- auth/ANcgQgg7OZ_p3Wj1okiszKYNgRar5sV9ks5tJLxEgaJpZM4RZRYg> . <https://github.com/notifications/beacon/ANcgQk15c4joslLKDC- 4GTOQGkemPWOkks5tJLxEgaJpZM4RZRYg.gif>

john-d-fox avatar Jan 11 '18 15:01 john-d-fox