Alexander,
-----Original Message----- From: Alexander Genkin [mailto:lukistrela at netzero.net] Sent: Sunday, February 24, 2002 1:23 PM To: R-help at stat.math.ethz.ch Subject: [R] Dicsriminant coefficients Hi! Will you please ask a newbie's question? Need linear discriminant analysis, need to capture discrim. function coefficients for further processing.
Small tip: In English sentences are easier to read (and people are more likely to read them) if they contain a subject.
Using R ver 1.4.0 package MASS function lda()
Try
obj <- lda(.....) cf <- coef(obj)
Help says resulting object should have "components" (among others): means, scaling, svd, but program returns NULL for all of them
Which "program" returns NULL for all of them? Look carefully at the returned object and try, for example,
names(obj)
or
unclass(obj)
or for a particular component (why do you put this word in quotes above?)
obj$svd # &c
Bill Venables.
Thank you! ---------------------------------------------------- Sign Up for NetZero Platinum Today Only $9.95 per month! http://my.netzero.net/s/signup?r=platinum&refcd=PT97
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.-
r-help mailing list -- Read
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._