https://github.com/rsquaredacademy/inferr

Parametric and non-parametric statistical tests

https://github.com/rsquaredacademy/inferr

Science Score: 13.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
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.2%) to scientific vocabulary

Keywords

inference inferential-statistics non-parametric parametric rstats statistical-tests
Last synced: 6 months ago · JSON representation

Repository

Parametric and non-parametric statistical tests

Basic Info
Statistics
  • Stars: 37
  • Watchers: 4
  • Forks: 8
  • Open Issues: 13
  • Releases: 5
Topics
inference inferential-statistics non-parametric parametric rstats statistical-tests
Created about 9 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License Code of conduct Support

README.Rmd

---
output: github_document
---



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

# inferr 

> Tools for Statistical Inference


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


## Overview

inferr builds upon the statistical tests provided in **stats**, provides additional and flexible input options and more detailed and structured test results. As of version 0.3, **inferr** includes a select set of parametric and non-parametric statistical tests which are listed below:

- One Sample t Test
- Paired Sample t Test
- Independent Sample t Test
- One Sample Proportion Test
- Two Sample Proportion Test
- One Sample Variance Test
- Two Sample Variance Test
- Binomial Test
- ANOVA
- Chi Square Goodness of Fit Test
- Chi Square Independence Test
- Levene's Test
- Cochran's Q Test
- McNemar Test
- Runs Test for Randomness


## Installation

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

# the development version from github
# install.packages("devtools")
devtools::install_github("rsquaredacademy/inferr")
```

## Articles

- [Introduction to inferr](https://inferr.rsquaredacademy.com/articles/intro.html)

## Usage

#### One Sample t Test

```{r load, echo=FALSE, message=FALSE}
library(inferr)
```

```{r infer1}
ifr_os_t_test(hsb, write, mu = 50, type = 'all')
```

#### ANOVA

```{r anova}
ifr_oneway_anova(hsb, write, prog)
```

#### Chi Square Test of Independence

```{r chi1}
ifr_chisq_assoc_test(hsb, female, schtyp)
```

#### Levene's Test

```{r lev1}
ifr_levene_test(hsb, read, group_var = race)
```

#### Cochran's Q Test

```{r cochran}
ifr_cochran_qtest(exam, exam1, exam2, exam3)
```

#### McNemar Test

```{r mc1}
hb <- hsb
hb$himath <- ifelse(hsb$math > 60, 1, 0)
hb$hiread <- ifelse(hsb$read > 60, 1, 0)
ifr_mcnemar_test(hb, himath, hiread)
```

## 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 inferr project is released with a [Contributor Code of Conduct](https://inferr.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: 4
  • Push event: 7
  • Pull request event: 5
Last Year
  • Create event: 1
  • Release event: 1
  • Issues event: 4
  • Push event: 7
  • Pull request event: 5

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 289
  • Total Committers: 1
  • Avg Commits per committer: 289.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
rsquaredin r****n@g****m 289

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 32
  • Total pull requests: 40
  • Average time to close issues: 4 months
  • Average time to close pull requests: 1 day
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.03
  • Average comments per pull request: 0.05
  • Merged pull requests: 40
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 3
  • Average time to close issues: 2 months
  • Average time to close pull requests: 7 minutes
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aravindhebbali (32)
Pull Request Authors
  • aravindhebbali (40)
Top Labels
Issue Labels
feature (9) bug (9) enhancement (6) docs (3) ci (1) chore (1)
Pull Request Labels
docs (3) bug (1) refactor (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 667 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: inferr

Inferential Statistics

  • Versions: 6
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 667 Last month
Rankings
Forks count: 7.3%
Stargazers count: 8.6%
Average: 17.7%
Dependent packages count: 18.1%
Dependent repos count: 24.0%
Downloads: 30.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.2 depends
  • Rcpp * imports
  • data.table * imports
  • magrittr * imports
  • stats * imports
  • utils * imports
  • covr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • xplorerr * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite