[R] Location of polr function

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Mar 3 23:32:24 CET 2004


"Peter Flom" <flom at ndri.org> writes:

> Hello
> 
> 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.  
> 
> Any help appreciated

library(MASS)

(and help.search("polr") might have given you the idea)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list