You may be able find someone else's function that already does you want.
For example the dredge() function of the MuMIn package.
http://rpackages.ianhowson.com/cran/MuMIn/man/MuMIn-package.html
Jean
On Fri, Aug 26, 2016 at 1:11 PM, Jorge Cimentada
wrote:
> Hi, I'd like some feedback on how to
Hi, I'd like some feedback on how to make this function more "quicker and
parsimonious".
I normally run several regressions like this:
y ~ x1
y ~ x1 + x2
y ~ x1 + x2 +xn
Instead, I created a function in which I specify y, x1 and x2 and the
function automatically generates:
y ~ x1
y ~ x1 + x2
y ~
2 matches
Mail list logo