s-news
[Top] [All Lists]

[S] Bug fix for weights argument in fda()

To: s-news@wubios.wustl.edu
Subject: [S] Bug fix for weights argument in fda()
From: Michael Ostland <ostland@stat.berkeley.edu>
Date: Thu, 23 Apr 1998 13:38:47 -0700 (PDT)
Sender: owner-s-news@wubios.wustl.edu
The fda() function in the Flexible Discriminant Analysis
package has a bug when one tries to specify the "weights"
argument.  Trevor Hastie suggests the following fix:

> Replace the line near the top of fda (that looks almost like this one)
> with:
> 
>     m <- m[match(names(m), c("", "formula", "data", "weights"), 0)>0]
> 



-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Bug fix for weights argument in fda(), Michael Ostland <=