my_lm: Fitting Linear Models

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function is used to fit a linear model to imput data.

Usage

1

Arguments

formula

Numeric input of a formula a symbolic description of the model to be fitted.

data

Dataframe containing the data to be used used in formula

Value

Table object containing numeric estimates for coefficients, standard error, t value, and p value. With a line for each explanatory variables plus the intercept.

Examples

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

MatteVin/myfirstpackage documentation built on March 20, 2020, 9:45 p.m.