Skip to content
Prev 168845 / 398503 Next

Extracting Coefficients and Such from mle2 Output

Marc Schwartz <marc_schwartz <at> comcast.net> writes:
My other two cents about this issue:

 David is quite right that you can basically think of "@"
as equivalent to "$" for getting bits out of S4 objects.
However ... in general S4 classes make it harder to get
internal bits out of objects, and in some sense they're
really *supposed* to make it harder.  Really the thing to
do when you encounter information that's buried somewhere
in an S4 object, the appropriate solution is what you did --
write to the author and say "why isn't there an accessor
method [the technical jargon for functions like coef()]
to get this piece of information out of this object, or
why isn't it properly documented? (Or is there some 
reason that I shouldn't be trying to access this piece
of information?)"

  cheers
   Ben Bolker