Use deriv() on a formula object

USAGE:

deriv.formula(expr, namevec, function.arg, tag) 

This is a method for the function deriv() for objects inheriting from class formula. See deriv or deriv.default for the general behavior of this function and for the interpretation of expr, namevec, function.arg, tag.