my_lm: lm function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model to given data.

Usage

1

Arguments

formula

Class object.

data

Input data frame.

Value

Table that includes the estimates for the regression coefficients, the standard errors of the estimations, the t-values of the estimations, and the probability of observing a t-value at least as extreme as the one observed, if the null hypothesis is correct.

Examples

1
my_lm(formula = mtcars$wt ~ mtcars$cyl + mtcars$mpg, data = mtcars)

anikalindley/project3package documentation built on Dec. 19, 2021, 3:37 a.m.