Modified speedglm and speedlm to use complex formulas