Skip to content
Prev 15857 / 20628 Next

adding objects into "glmerMod" fits

Unfortunately for you, S4 classes are much fussier than S3 classes
about their composition.  Your only choices, I think, are

(1) modify the definition of a glmerMod (by copying the entire code of
the package, or forking it on Github)
(2) construct a class that extends the glmerMod  (i.e with
setClass("myGlmerMod", contains="glmerMod"))

e.g.

 setClass("myGlmerMod",contains="glmerMod",representation(new="data.frame"))

seems to work - at least it doesn't complain.

(3) add the additional information as one or more attributes

On Tue, Oct 3, 2017 at 5:39 PM, Vito Michele Rosario Muggeo
<vito.muggeo at unipa.it> wrote: