08.10.2015 Views

Package ‘MuMIn’

Package 'MuMIn'

Package 'MuMIn'

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

updateable 57<br />

x<br />

an object from which the call should be extracted.<br />

formula, random, ...<br />

arguments to be passed to gamm or gamm4<br />

lme4<br />

if TRUE, gamm4 is called, gamm otherwise.<br />

Details<br />

Most model fitting functions in R return an object that can be updated or re-fitted via update. This<br />

is thanks to the call stored in the object, which can be used (possibly modified) later on. It is<br />

also utilised by dredge to generate sub-models. Some functions (such as gamm or MCMCglmm) do<br />

not provide their result with the call element. To work that around, updateable can be used on<br />

that function to store the call. The resulting wrapper should be used in exactly the same way as the<br />

original function.<br />

Argument eval.args specifies names of function arguments that should be evaluated in the stored<br />

call. This is useful when, for example, the model object does not have formula element. The<br />

default formula method tries to retrieve formula from the stored call, which works unless the<br />

formula has been given as a variable and value of that variable changed since the model was fitted<br />

(the last ‘example’ demonstrates this).<br />

Value<br />

updateable returns a function with the same arguments as FUN, wrapping a call to FUN and adding<br />

an element named call to its result if possible, otherwise an attribute "call" (if the returned value<br />

is atomic or a formal S4 object).<br />

Note<br />

get_call is similar to getCall (defined in package stats), but it can also extract the call when it<br />

is an attribute (and not an element of the object). Because the default getCall method cannot do<br />

that, the default update method will not work with atomic or S4 objects resulting from updateable<br />

wrappers.<br />

uGamm sets also an appropriate class onto the result ("gamm4" and/or "gamm"), which is needed for<br />

some generics defined in MuMIn to work (note that unlike the functions created by updateable it<br />

has no formal arguments of the original function). As of version 1.9.2, MuMIn::gamm is no longer<br />

available.<br />

Author(s)<br />

Kamil Bartoń<br />

See Also<br />

update, getCall, getElement, attributes<br />

gamm, gamm4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!