[R] Location of polr function
Chuck Cleland
ccleland at optonline.net
Wed Mar 3 23:16:09 CET 2004
Peter Flom wrote:
> I am running R 1.8.1 on a Windows platform
>
> I am attempting to fit an ordinal logistic regression model, using the
> polr function, as described in Venables and Ripley. But when I try
>
> model4 <- polr(ypsxcat~committed + as.factor(sex)
> + as.factor(drugusey) + anycsw + as.factor(sex)*committed
> + as.factor(sex)*as.factor(drugusey)+as.factor(sex)*anycsw, data =
> duhray)
>
> I get a message that the polr function was not found.
Load the MASS package prior to calling polr().
library(MASS)
--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894
More information about the R-help
mailing list