my_lm: Linear regression model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function creates a linear regression model based on a given relation for a given data set.

Usage

1

Arguments

formula

Formula of proposed relation of data.

data

Data on which regression model is to be formed.

Value

Data frame containing numeric values of linear model coefficients, standard errors, t-values, and p-values

Examples

1
2
my_lm(lifeExp ~ gdpPercap + continent, my_gapminder)
my_lm(Sepal.Length ~ Sepal.Width, my_iris)

johnbdonovan/myFirstPackage documentation built on March 18, 2020, 12:12 a.m.