my_lm: Linear Model function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model.

Usage

1

Arguments

formula

a formula class object, similar to lm().

data

An input data frame.

Value

A dataframe with rows for each coefficient and columns for the Estimate, Std. Error, t value, and Pr(>|t|) with row and column names.

Examples

1
my_lm(y ~ x, data.frame(x = rnorm(100, 0, 1), y = rnorm(100, 0, 1)))

CamSims/myfirstpackage documentation built on Dec. 17, 2021, 1:56 p.m.