[R] mlogit is not an S4 object error

Peter Ehlers ehlers at ucalgary.ca
Wed Feb 24 17:15:55 CET 2010


On 2010-02-24 6:51, Steve_Friedman at nps.gov wrote:
>
> Hello,
>
> I've been getting the following error  when using the mlogit function from
> the mlogit package
>
> This is one of the examples provided in the Package "mlogit" January 27,
> 2010 description
>
> data("Fishing", package="mlogit")
>   Fish<- mlogit.data(Fishing, varying = c(4:11), shape="wide",
> choice="mode")
>   summary(mlogit(mode ~ pr + ca - 1, data = Fish))
>
>
> Call:
> Error in deparse(object at call) :
>    trying to get slot "call" from an object (class "mlogit") that is not an
> S4 object

Looks like the wrong summary method is being used.
Your sessionInfo() might help.

  -Peter Ehlers

>
> I'm running on Windows XP  R 2.10.1
>
> Does anyone have any ideas why this is failing ?
>
> Thanks
> Steve
>
> Steve Friedman Ph. D.
> Spatial Statistical Analyst
> Everglades and Dry Tortugas National Park
> 950 N Krome Ave (3rd Floor)
> Homestead, Florida 33034
>
> Steve_Friedman at nps.gov
> Office (305) 224 - 4282
> Fax     (305) 224 - 4147
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>

-- 
Peter Ehlers
University of Calgary



More information about the R-help mailing list