Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/winvector/sigr

Concise formatting of significances in R (GPL3 license).
https://github.com/winvector/sigr

Last synced: 13 days ago
JSON representation

Concise formatting of significances in R (GPL3 license).

Awesome Lists containing this project

README

        

---
output: github_document
---

[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/sigr)](https://cran.r-project.org/package=sigr)
[![status](https://tinyverse.netlify.com/badge/sigr)](https://CRAN.R-project.org/package=sigr)

# sigr

Concise formatting of significances in R.

![](https://github.com/WinVector/sigr/raw/master/tools/sigr.png)

Please see [Adding polished significance summaries to papers using R](https://win-vector.com/2016/10/04/adding-polished-significance-summaries-to-papers-using-r/) for some discussion.

See also:

* ["The prevalence of statistical reporting errors in psychology (1985–2013)", Nuijten, M.B., Hartgerink, C.H.J., van Assen, M.A.L.M. et al., Behav Res (2015), doi:10.3758/s13428-015-0664-2](https://link.springer.com/article/10.3758/s13428-015-0664-2)
* Reporting Statistics in APA Style
* [Publication Manual of the American Psychological Association, Seventh Edition](https://apastyle.apa.org/products/publication-manual-7th-edition)
* [Proofing statistics in papers](https://win-vector.com/2016/10/02/proofing-statistics-in-papers/)
* [apa](https://CRAN.R-project.org/package=apa)
* [bootstrap](https://CRAN.R-project.org/package=bootstrap)
* [broom](https://cran.r-project.org/package=broom)
* [achetverikov/APAstats](https://github.com/achetverikov/APAstats)
* [pwr](https://CRAN.R-project.org/package=pwr)
* [ggstatsplot](https://indrajeetpatil.github.io/ggstatsplot/)
* ["Why Most Published Research Findings Are False", John P. A. Ioannidis
PLOS Medicine, August 30, 2005](https://journals.plos.org/plosmedicine/article?id=10.1371/journal.pmed.0020124)
* ["The garden of forking paths", Andrew Gelman and Eric Loken, 14 Nov 2013](http://www.stat.columbia.edu/~gelman/research/unpublished/p_hacking.pdf)

-----------

_sigr_ is a small package that concentrates on computing summary
statistics and reporting in an appropriate format.

For example here is formatting the quality of a logistic regression.

```{r}
d <- data.frame(x=c(1,2,3,4,5,6,7,7),
y=c(TRUE,FALSE,FALSE,FALSE,TRUE,TRUE,TRUE,FALSE))
model <- glm(y~x,data=d,family=binomial)
summary(model)
```

```{r}
library("sigr")
```
```{r results='asis'}
cat(render(wrapChiSqTest(model),
pLargeCutoff=1, format='markdown'))
```

-----------

To install, from inside `R` please run:

```{r, eval=FALSE}
install.packages("sigr")
```