my_lm: The linear regression model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function is used to fit linear model and carry out linear regression.

Usage

1

Arguments

formula

an object class as a symbolic description of the model to be fitted.

data

input data frame.

Value

a table similar to coefficient table of lm()

Examples

1
2
3
formula <- mpg ~ hp + wt
data <- mtcars
my_lm(formula, data)

hadiyusri/project3package documentation built on Dec. 20, 2021, 2:40 p.m.