[R] Error in ORDGLM function
kamal.desai at wachovia.com
Fri Apr 26 23:14:31 CEST 2002
I am trying this simple model.
Following is the code:
newrate <- c(0,1,2,0,1,2,0,1,2,0,1,2)
totalast <- c(100,200,300,120,215,280,75,145,255,125,275,310)
It runs for few seconds and get the error back
Error in ordglm(newrate ~ totalast, link = "logit", maxiter = 100, weights = 1) :
Object "PearsRes" not found
I tried to use the example in the package
# McCullagh (1980) JRSS B42, 109-142
# tonsil size: 2x3 contingency table
y <- c(0:2,0:2)
carrier <- gl(2,3,6)
wt <- c(19,29,24,497,560,269)
It works fine. So everything is installed correctly.
may be it has something to do with the weight?
Any help is welcome.
Thanks a lot.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help