Weiwei Shi
2007-Jan-23 16:54 UTC
[R] which classification package in R can assign sample weight?
Hi, I am looking for some function implemented in R for classification, which has an option to allow me to assign sample weights in learning process? Implementation of a wrapper function is possible but I am curious if it already exists somewhere. Thanks, -- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
Prof Brian Ripley
2007-Jan-23 18:06 UTC
[R] which classification package in R can assign sample weight?
Almost all methods I know of do: logistic regression, neural nets, classification trees, PPR .... Have you looked at the help pages for any of these? On Tue, 23 Jan 2007, Weiwei Shi wrote:> Hi, > > I am looking for some function implemented in R for classification, > which has an option to allow me to assign sample weights in learning > process? Implementation of a wrapper function is possible but I am > curious if it already exists somewhere. > > Thanks, > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Weiwei Shi
2007-Jan-23 18:44 UTC
[R] which classification package in R can assign sample weight?
Just checked ?lrm ?nnet ?rpart ?ppr thanks. but wondering if the last one can do classification? On 1/23/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:> Almost all methods I know of do: logistic regression, neural nets, > classification trees, PPR .... > > Have you looked at the help pages for any of these? > > On Tue, 23 Jan 2007, Weiwei Shi wrote: > > > Hi, > > > > I am looking for some function implemented in R for classification, > > which has an option to allow me to assign sample weights in learning > > process? Implementation of a wrapper function is possible but I am > > curious if it already exists somewhere. > > > > Thanks, > > > > > > -- > Brian D. Ripley, ripley at stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595 >-- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
Prof Brian Ripley
2007-Jan-23 23:02 UTC
[R] which classification package in R can assign sample weight?
On Tue, 23 Jan 2007, Weiwei Shi wrote:> Just checked > ?lrm(I would use glm or multinom.)> ?nnet > ?rpart > ?ppr > > thanks. > > but wondering if the last one can do classification?Yes, it has been so used since it can do multivariate outcomes. See Chapter 4 of my PRNN book, for example.> On 1/23/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote: >> Almost all methods I know of do: logistic regression, neural nets, >> classification trees, PPR .... >> >> Have you looked at the help pages for any of these? >> >> On Tue, 23 Jan 2007, Weiwei Shi wrote: >> >> > Hi, >> > >> > I am looking for some function implemented in R for classification, >> > which has an option to allow me to assign sample weights in learning >> > process? Implementation of a wrapper function is possible but I am >> > curious if it already exists somewhere. >> > >> > Thanks, >> > >> > >> >> -- >> Brian D. Ripley, ripley at stats.ox.ac.uk >> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ >> University of Oxford, Tel: +44 1865 272861 (self) >> 1 South Parks Road, +44 1865 272866 (PA) >> Oxford OX1 3TG, UK Fax: +44 1865 272595 >> > > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595