Skip to content

Could generic functions check different S3 methods for an object when one of them produces an error?

1 message · John Fox

#
Dear Iago,

The R S3 object system works as expected here, using the first available method processing the class vector from left to right. The problem is that the broom package doesn't export the confint.geeglm() method but rather reserves it for internal use. I can't think why the package authors chose to do that but you could ask them. The following therefore works (following on with your example):
lwr         upr
(Intercept) 3607.595981 5204.790222
Frost         -2.723317    6.097207
Murder       -84.166856   38.838155

I hope this helps,
 John

  -------------------------------------------------
  John Fox, Professor Emeritus
  McMaster University
  Hamilton, Ontario, Canada
  Web: http::/socserv.mcmaster.ca/jfox