my_lm: Linear model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model in statistic

Usage

1

Arguments

formula

An object of class formula, a symbolic description of the model to be fitted.

data

A input data frame containing the variables in the model.

Value

a table with rows for each coefficient (including the (Intercept)) and columns for the Estimate, Std. Error, t value, and Pr(>|t|).

Examples

1
my_lm(mpg ~ hp + wt, mtcars)

jingnanyuan/STAT302package documentation built on April 2, 2020, 9:42 p.m.