[R] Multinomial Logit Models

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Jan 27 15:12:03 CET 2003


On Mon, 27 Jan 2003, Laura Gross wrote:

> Hi, Thanks for that help.
> 
> In message <Pine.LNX.4.44.0301241256030.12565-100000 at gannet.stats>,
> ripley at stats.ox.ac.uk writes
> >On Fri, 24 Jan 2003, L.E.Gross wrote:
> >
> >> I am wanting to fit some multinomial logit models (multinom command in
> >> package nnet)
> >> 
> >> Is it possible to do any model checking techniques on these models 
> >> e.g. residual, leverage etc. I cannot seem to find any commands that 
> >> will allow me to do this.
> 
> >residuals() should work: it does for me.
> 
> I have tried using this:
> My model is say:
> 
> model<-multinom(self~sex, data=self) yet when I try
> 
> residuals(model) I simply get the return as NULL?

That of course is not reproducible, but

> library(MASS)
> data(housing)
> library(nnet)
> (house.mult <- multinom(Sat ~ Infl + Type + Cont,
+                         weights = Freq, data = housing))
> residuals(house.mult)

is, and it works.

-- 
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




More information about the R-help mailing list