[R] mlogit is not an S4 object error
ehlers at ucalgary.ca
Wed Feb 24 17:15:55 CET 2010
On 2010-02-24 6:51, Steve_Friedman at nps.gov wrote:
> 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",
> summary(mlogit(mode ~ pr + ca - 1, data = Fish))
> 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.
> I'm running on Windows XP R 2.10.1
> Does anyone have any ideas why this is failing ?
> 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
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
University of Calgary
More information about the R-help