[R] polr function, Error in if (all(pr > 0)) -sum(wt * log(pr)) else Inf

Clifton Emery clifkorea at yahoo.com
Wed May 4 01:12:44 CEST 2005

      I am trying to run a proportional odds model
with the code:

data=misdat4, start=st)

Some of my models run, others (like the code above)
get an error indicating that the starting values are
infinite.  Someone suggested I try putting in the
starting values myself.  I created a vector which has
length 47 (45 predictors plus (3 levels of depvar) - 1
).  This now gets the message:

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

Can anyone help me to understand what this means and
how I might fix it?  Thanks!

                            Clif Emery

More information about the R-help mailing list