Byron Ellis gmail.com> writes:
>
> He wants to specify arguments to AIC that act like the "k" argument
> and is thinking of faking it by, essentially, doing another round of
> argument matching on ...
>
> I think that if you define an S4 generic that only dispatches on the
> first argument you
He wants to specify arguments to AIC that act like the "k" argument
and is thinking of faking it by, essentially, doing another round of
argument matching on ...
I think that if you define an S4 generic that only dispatches on the
first argument you may be able to do it for a specific method. On t
Ben Bolker <[EMAIL PROTECTED]> writes:
> I'm trying to add arguments to the AIC method
> for some classes -- things like
> weights=TRUE to calculate AIC weights
> corr=TRUE, nobs to calculate AICc
> delta=TRUE to put a delta-AIC column in the output.
>
> The problem is that AIC is define
I don't see how this can work, in S3 or S4. Callers of AIC are entitied
to expect it to behave as described on the help page, and so to be able to
pass objects called (e.g.) 'delta' and get back exactly the value
mentioned.
For what you seem to want to do, I think you need your own generic.