andy_liaw at merck.com
Sat Jun 12 23:29:37 CEST 2004
Seems rather straightforward to me. The prior="uniform" in discrim() says
to use equal prior for each group. You can do the same by explicitly
specifying the priors; e.g.,
x <- lda(admit ~ gpa + gmat, data=data.mm,
> From: Martin Willett
> I am trying to write the following code in R. The code works
> in S+ and i
> am trying to do the program in R.
> i wrote the following in R:
> i could not figure out how to write prior=c("uniform") in R.
> I would get
> an error every time. I think that it has something to do
> with "uniform". Do you know what i use instead of "uniform"
> for R? I am
> trying to do a uniform distribution.
> Thank you.
More information about the R-help