README.md

R-CMD-check

codecov

Package.v1

Overview

Package.v1 conducts linear regression analysis on data, providing a list of functions that helps your fit linear model, do prediction, conduct general linear hypothesis testing, obtain four types of residuals with one line code, DFFIT calculation, and Cook's distance:

Installation

You can install the package with following code:

devtools::install_github("YuxuanChen0824/R_package", build_vignettes = T)

Usage

For detailed tutorial, please run browseVignettes("package.v1") after installing the package. Below only simple example formats are provided:

# fit model
linear_model(y ~ x, data)

# prediction
predict_mock(mod, newobs)

# GLH
GLH(mod, contrast_matrix, rhs_constant)

# residuals
residuals(mod)

# DFFIT
dffit(mod)

# Cook's distance
Cooks(mod)

Getting Help

For detailed usage of each functions and corresponding toy examples, please use ?linear_mod ?predict_mock ?GLH ?residuals ?dffit and ?Cooks to access help pages.



YuxuanChen0824/R_package documentation built on Dec. 18, 2021, 8:24 p.m.