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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to