my_lm: Linear model function

Description Usage Arguments Value Examples

Description

This function fits a linear model of data in R.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
my_lm(
  formula,
  data,
  subset,
  weights,
  na.action,
  method = "qr",
  model = TRUE,
  x = FALSE,
  y = FALSE,
  qr = TRUE,
  singular.ok = TRUE,
  contrasts = NULL,
  offset,
  ...
)

Arguments

formula

Formula class object that lm will use.

data

Input data frame for lm.

Value

Table with rows for each coefficient, including "Intercept", and columns for "Estimate", "Std. Error", "t value", and "Pr(>|t|):.

Examples

1
my_lm(formula = lifeExp ~ gdpPercap + continent, data = my_gapminder)

anna-vasyura/STAT302package documentation built on Dec. 19, 2021, 3:39 a.m.