olsrr

Tools for developing OLS regression models

https://github.com/rsquaredacademy/olsrr

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.9%) to scientific vocabulary

Keywords

collinearity-diagnostics linear-models regression rstats stepwise-regression
Last synced: 6 months ago · JSON representation

Repository

Tools for developing OLS regression models

Basic Info
Statistics
  • Stars: 102
  • Watchers: 6
  • Forks: 23
  • Open Issues: 19
  • Releases: 12
Topics
collinearity-diagnostics linear-models regression rstats stepwise-regression
Created about 9 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Support

README.Rmd

---
output: github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```

# olsrr 


[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/olsrr)](https://cran.r-project.org/package=olsrr)
[![R build status](https://github.com/rsquaredacademy/olsrr/workflows/R-CMD-check/badge.svg)](https://github.com/rsquaredacademy/olsrr/actions)
[![Coverage status](https://codecov.io/gh/rsquaredacademy/olsrr/branch/master/graph/badge.svg)](https://app.codecov.io/github/rsquaredacademy/olsrr?branch=master) 


## Overview

The olsrr package provides following tools for building OLS regression models using R:

- Comprehensive Regression Output
- Variable Selection Procedures
- Heteroskedasticity Tests
- Collinearity Diagnostics
- Model Fit Assessment
- Measures of Influence
- Residual Diagnostics
- Variable Contribution Assessment

## Installation

```{r cran-installation, eval = FALSE}
# Install release version from CRAN
install.packages("olsrr")

# Install development version from GitHub
# install.packages("pak")
pak::pak("rsquaredacademy/olsrr")
```

## Articles

- [Quick Overview](https://olsrr.rsquaredacademy.com/articles/intro.html)
- [Variable Selection Methods](https://olsrr.rsquaredacademy.com/articles/variable_selection.html)
- [Residual Diagnostics](https://olsrr.rsquaredacademy.com/articles/residual_diagnostics.html)
- [Heteroskedasticity](https://olsrr.rsquaredacademy.com/articles/heteroskedasticity.html)
- [Measures of Influence](https://olsrr.rsquaredacademy.com/articles/influence_measures.html)
- [Collinearity Diagnostics](https://olsrr.rsquaredacademy.com/articles/regression_diagnostics.html)

## Usage

```{r, echo=FALSE, message=FALSE}
library(olsrr)
library(dplyr)
library(ggplot2)
library(gridExtra)
library(nortest)
library(goftest)
```

olsrr uses consistent prefix `ols_` for easy tab completion. If you know how to write a `formula` or build models using `lm`, you will find olsrr very useful. Most of the functions use an object of class `lm` as input. So you just need to build a model using `lm` and then pass it onto the functions in olsrr. Below is
a quick demo:

#### Regression

```{r regress}
model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
ols_regress(model)
```

## Getting Help

If you encounter a bug, please file a minimal reproducible example using 
[reprex](https://reprex.tidyverse.org/index.html) on github. For questions and clarifications, 
use [StackOverflow](https://stackoverflow.com/).

## Code of Conduct

Please note that the olsrr project is released with a [Contributor Code of Conduct](https://olsrr.rsquaredacademy.com/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

Owner

  • Name: Rsquared Academy
  • Login: rsquaredacademy
  • Kind: organization
  • Email: pkgs@rsquaredacademy.com
  • Location: Bengaluru, India

GitHub Events

Total
  • Create event: 1
  • Release event: 1
  • Issues event: 7
  • Watch event: 1
  • Issue comment event: 3
  • Push event: 8
  • Pull request event: 4
Last Year
  • Create event: 1
  • Release event: 1
  • Issues event: 7
  • Watch event: 1
  • Issue comment event: 3
  • Push event: 8
  • Pull request event: 4

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 725
  • Total Committers: 3
  • Avg Commits per committer: 241.667
  • Development Distribution Score (DDS): 0.003
Past Year
  • Commits: 11
  • Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
rsquaredin r****n@g****m 723
topepo m****n@g****m 1
Grant Brown g****3@g****m 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 127
  • Total pull requests: 72
  • Average time to close issues: about 2 months
  • Average time to close pull requests: about 2 hours
  • Total issue authors: 41
  • Total pull request authors: 4
  • Average comments per issue: 1.41
  • Average comments per pull request: 0.04
  • Merged pull requests: 70
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 2
  • Average time to close issues: about 9 hours
  • Average time to close pull requests: 16 minutes
  • Issue authors: 3
  • Pull request authors: 1
  • Average comments per issue: 0.29
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aravindhebbali (85)
  • linusjf (4)
  • elielw (1)
  • vasili111 (1)
  • TimmyKarl (1)
  • bappa10085 (1)
  • modche (1)
  • jst04004 (1)
  • tikuma-lsuhsc (1)
  • topepo (1)
  • davidreilly007 (1)
  • viqule11 (1)
  • williamlai2 (1)
  • qwertytam (1)
  • jmberros (1)
Pull Request Authors
  • aravindhebbali (71)
  • grantbrown (2)
  • AminHP (1)
  • topepo (1)
Top Labels
Issue Labels
bug (58) enhancement (28) feature (5) docs (4) refactor (3) test (1)
Pull Request Labels
enhancement (5) docs (4) refactor (2) bug (1)

Dependencies

DESCRIPTION cran
  • R >= 3.3 depends
  • car * imports
  • ggplot2 * imports
  • goftest * imports
  • graphics * imports
  • gridExtra * imports
  • nortest * imports
  • stats * imports
  • utils * imports
  • covr * suggests
  • descriptr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • vdiffr * suggests
  • xplorerr * suggests