Skip to content
Prev 36140 / 63421 Next

Defining a method in two packages

Terry,

this happens since the ranef in coxme is a S3 generic and the one in 
lme4 is a S4 generic.

Of course, after loading lme4, you can still use the ranef from coxme:

coxme::ranef(fit)

and get the desired result.

If you write your own code, you might want to use that call explicitly 
(i.e. accessing from the correct namepsace). In your own package, you 
could simply import the generic from coxme.

Best wishes,
Uwe
On 05.03.2010 17:47, Terry Therneau wrote: