GLM with arbitrary column names

Description

Substitute column names that are unsuitable for formulas and substitute back when returning results.

Usage

1
glm2(dat, y, xs, ...)

Arguments

dat

data.frame. Souce data to build GLM upon.

y

character. Column name of dependent variable.

xs

character. Column names of independent variable.

...

passed to glm.

Value

data.frame of coefficients.

Author(s)

Kaiyin Zhong, Fan Liu

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.