A simple modeling function using a formula and data
A simple modeling function using a formula and data
mylm(formula, data)
mylm(formula, data)
Arguments
- formula
A formula as in lm()
- data
A data.frame containing the elements specified in the formula
Value
A list of matrices
A list of matrices
Examples
options(na.action='na.pass')
data("iris")
out_list = mylm(formula = Petal.Length ~ Sepal.Length + Sepal.Width, data = iris)
options(na.action='na.pass')
data("iris")
out_list = mylm(formula = Petal.Length ~ Sepal.Length + Sepal.Width, data = iris)