On Oct 14, 2009, at 12:24 PM, Alejo C.S. wrote:
Hi Alain, thanks for the fast response. I've the same results with
iris
data, but when I use my data (mentioned in the first message),
You are apparently under the false impression that the data made it
through the listserv. Read the Posting
Hi Alain, thanks for the fast response. I've the same results with iris
data, but when I use my data (mentioned in the first message), I have
different results.
Regards,
Alejo
2009/10/14 Alain Guillet
> Hi,
>
> I did it with
>
> Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), Sp
Hi,
I did it with
Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), Sp =
rep(c("s","c","v"), rep(50,3)))
train <- sample(1:150, 75) table(Iris$Sp[train])
z <- lda(Sp ~ ., Iris, prior = c(1,1,1)/3, subset = train)
Then I did plot(z,xlim=c(-10,10),ylim=c(-10,10)) before drawing
poi
I'm confused on how is the right way to plot a discriminant analysis made by
lda function (MASS package).
(I had attached my data fro reproduction). When I plot a lda object :
X <- read.table("data", header=T)
lda_analysis <- lda(formula(X), data=X)
plot(lda_analysis)
#the above plot is complet
4 matches
Mail list logo