# R (programming language)

From Citizendium, the Citizens' Compendium

**R** is an open source programming language for statistical analysis and graphics.

Its software and manual are online at http://cran.r-project.org/. Third party books are available for learning R.^{[1]}^{[2]}

Graphical interfaces are available:

## Contents

## Uses

### Statistics

An interactive package for instructions (12 pages) on using R for statistics is available^{[3]} with a commercial book for further detail (376 pages).^{[1]}

#### Mantel-Haenszel Chi-square Test

^{[4]}^{[5]}

#### Simple statistical inference

Basic tests, such as T-test, chi-square and others are described in the Chapter, "Chapter Simple Inference", of http://cran.r-project.org/web/packages/HSAUR2/.

#### Regression

##### Non-linear

- Nonlinear regression with R
- Linear and Nonlinear Mixed Effects Models
- Non-linear regression with brute force
- Linear and Nonlinear Mixed Effects Models
- Higher Order Inference for Nonlinear Heteroscedastic Models
- Tools for nonlinear regression diagnostics

#### Diagnosis

Relevant packages include http://cran.r-project.org/web/packages/ROCR/ and http://cran.r-project.org/web/packages/DiagnosisMed/.

#### Meta-analysis

- Meta-analysis of treatments
- rmeta
- HSAUR2 interactive package with a chapter containing sample demonstrations, "Meta-Analysis: Nicotine Gum and Smoking Cessation and the Effcacy of BCG Vaccine in the Treatment of Tuberculosis" in "A Handbook of Statistical Analyses Using R".
^{[3]} - metafor package with manual.
^{[6]}Additional information is at http://www.metafor-project.org.

- Meta-analysis of diagnostic test accuracy
- hierarchical summary ROC

#### Recursive partitioning

- rpart package
- HSAUR2 interactive package with a chapter containing sample demonstrations, "Recursive Partitioning: Predicting Body Fat and Glaucoma Diagnosis" in "A Handbook of Statistical Analyses Using R".
^{[3]}

## References

- ↑
^{1.0}^{1.1}Torsten Hothorn; Everitt, Brian (2009).*A Handbook of Statistical Analyses Using R, Second Edition*. Boca Raton: Chapman & Hall/CRC. ISBN 1-4200-7933-6. - ↑ Dalgaard, Peter.
*Introductory Statistics with R (Statistics and Computing)*. New York: Springer. ISBN 0-387-79053-5. - ↑
^{3.0}^{3.1}^{3.2}Torsten Hothorn; Everitt, Brian. CRAN - Package HSAUR, 2nd ed. - ↑ Noguchi K, et al. lawstat: An R package for biostatistics, public policy, and law
- ↑ Cochran-Mantel-Haenszel Chi-Squared Test for Count Data
- ↑ Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1-48.