markmfredrickson/optmatch — Issue #8: support for existing optmatch code involving mdist's function method
Author: benthestatistician
Created: 2012-02-27 17:01:35+00:00
State: open

I'd much like for the s4 branch update to optmatch to minimize breaking people's existing code. The new S4 method for signature "function", however, seems to be pretty different. I like the differences but don't like my old scripts bombing.

Since the s3 method mdist.function() requires a "structure.fmla" argument which the new method has no use for, would it be possible to elaborate the new one so as to dispatch to the old one (or something similar) if it detects the absence of a "z" argument coupled with the presence of a "structure.fmla" argument?

(The reason I'm not suggesting to just infer z from the structure.fmla argument is that the S4 function seems to expect somewhat different functions than the s3 method did. If there's a good way to translate older-style function specifications into new-style ones, that would be nice too.)