Article View: aus.stats.s
Article #262[S] discrim answer
From: Stafford Phillip-APS095
Date: Fri, 03 Aug 2001 21:08
Date: Fri, 03 Aug 2001 21:08
11 lines
1927 bytes
1927 bytes
To S+ group who use discrim(); The way discrim and predict.discrim were predicting less than the total number of observations in the test set, the answer was really simple: na.exclude was removing NA's from the training set but the algorithm was not aligning the predicted values properly when I inserted the predict.discrim results back into the original dataset. It's a matter of using the row values to place the new predictions next to the original values. The best answer is to use is.finite() when selecting the training set. Phillip Stafford Motorola Life Sciences --------------------------------------------------------------------- This message was distributed by s-news@lists.biostat.wustl.edu. To unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with the BODY of the message: unsubscribe s-news ---
Technical Details
Message-ID:
<07077F6C2A38D511920800D0B7821B3201E3851E@il06exm01.corp.mot.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!news.mel.connect.com.au!newshub1.rdc1.nsw.optushome.com.au!news1.optus.net.au!optus!news.usyd.edu.au!news.nsw.CSIRO.AU!cmis.csiro.au!owner-s-newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa931,c9d118fc121ec6eb,start X-Google-Attributes: gidfa931,public X-Google-ArrivalTime: 2001-08-03 14:28:01 PST Newsgroups: aus.stats.s Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!news.mel.connect.com.au!newshub1.rdc1.nsw.optushome.com.au!news1.optus.net.au!optus!news.usyd.edu.au!news.nsw.CSIRO.AU!cmis.csiro.au!owner-s-news From: phillip.stafford@motorola.com (Stafford Phillip-APS095) Subject: [S] discrim answer X-Nntp-Posting-Host: snowy.nsw.cmis.csiro.au Content-Type: text/plain; charset="iso-8859-1" Message-ID: <07077F6C2A38D511920800D0B7821B3201E3851E@il06exm01.corp.mot.com> Sender: majordomo@mailhost.nsw.cmis.CSIRO.AU Organization: CSIRO Australia X-To: s-news@wubios.wustl.edu Mime-Version: 1.0 Date: Fri, 3 Aug 2001 21:08:27 GMT X-Mailer: Internet Mail Service (5.5.2653.19) Content-Length: 831 X-Precedence: bulk X-Received: by il06exb01.corp.mot.com with Internet Mail Service (5.5.2653.19) id <P9F9DWYR>; Fri, 3 Aug 2001 15:58:03 -0500 Lines: 11