knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
options(tibble.print_min = 5, tibble.print_max = 5)

Travis build status Codecov test coverage

Overview

lm.hw4 is a package to fit and analyze linear regression model, including following functions.

Installation

install.packages("devtools")
library(devtools)
install_github("leyaozh/lm.hw4", build_vignettes = TRUE, force = TRUE)

Usage

library(lm.hw4)

# use dataset mtcats as an example
attach(mtcars)
x = cbind(hp, wt, hp * wt)
y = mpg

z = lm_fit(x, y, add.intercept = TRUE, method = "qr")
z
z.summary = lm_summary(z, correlation = TRUE)
z.summary
z.anova = lm_anova(z)
z.anova

detach(mtcars)


leyaozh/lm.hw4 documentation built on Dec. 3, 2019, 7:18 a.m.