[R] polr (MASS)

From: Naiara S. Pinto <naiara_at_mail.utexas.edu>
Date: Wed 25 Jan 2006 - 08:28:36 EST

Hello all,

I am trying to use polr (the ordered logistic model from MASS) but I am getting the following error message:

Error in if (all(pr > 0)) -sum(wt * log(pr)) else Inf : missing value where TRUE/FALSE needed

My response variable is a factor with 3 levels and I have 2 independent variables. I am not sure if I guessed the starting parameters right, which I imagine could be a source of error. Here's my code:

> polr(a~b+c, method="logistic", start=c(10, 0.06))

Does anyone have any ideas why I am getting this error message?

Thank you very much,


Naiara S. Pinto
Ecology, Evolution and Behavior
1 University Station A6700
Austin, TX, 78712

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jan 25 10:36:24 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:10 EST