[R] mlogit is not an S4 object error

Steve_Friedman at nps.gov Steve_Friedman at nps.gov
Wed Feb 24 14:51:31 CET 2010


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

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



More information about the R-help mailing list