my_lm: Linear Model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model for the given data using the given formula.

Usage

1

Arguments

data

a data frame with named columns

formula

a formula object specifying which columns of the data frame to use in the model

Value

table with the coefficients, standard errors, t values, and p values of each term in the coefficient.

Examples

1
2
data(my_gapminder)
my_lm(my_gapminder, lifeExp ~ gdpPercap)

Codax2000/mypackage documentation built on Dec. 17, 2021, 2:59 p.m.