CRAN Task View: Teaching Statistics
Maintainer: | Paul Northrop |
Contact: | p.northrop at ucl.ac.uk |
Version: | 2024-08-01 |
URL: | https://CRAN.R-project.org/view=TeachingStatistics |
Source: | https://github.com/cran-task-views/TeachingStatistics/ |
Contributions: | Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. For further details see the Contributing guide. |
Citation: | Paul Northrop (2024). CRAN Task View: Teaching Statistics. Version 2024-08-01. URL https://CRAN.R-project.org/view=TeachingStatistics. |
Installation: | The packages from this task view can be installed automatically using the ctv package. For example, ctv::install.views("TeachingStatistics", coreOnly = TRUE) installs all the core packages or ctv::update.views("TeachingStatistics") installs all packages that are not yet installed and up-to-date. See the CRAN Task View Initiative for more details. |
This CRAN task view gives information about packages with features that are designed to assist with the teaching of Statistics. It is not concerned with the teaching of R itself. A few of these packages are listed in other task views, but only the Bayesian task view has a section devoted explicitly to teaching (Bayesian) Statistics.
The packages are grouped into three broad topics: teaching, examination and packages associated with Statistics books. The latter is for books that are general enough to be of potential interest to a wide audience of teachers of Statistics. They should concern models and methods with wide applicability and not be tied closely to a particular application.
If you think that a package is missing from the list, or have any other comments or suggestions, then please contact the maintainer, either via e-mail or by submitting an issue or pull request in the GitHub repository linked above.
Teaching
- Rcmdr provides a GUI for R, based on the tcltk package. A point-and-click interface loads data and calls R functions to perform the kinds of analyses involved in introductory Statistics courses. More advanced and specialized analysis are also available, some of them via plug-ins. The R commands are shown in the console. See the The R Commander homepage for more information.
- swirl uses the R console to provide an interactive learning environment for students to learn Statistics. Students select courses to download from the swirl_courses GitHub page and are provided with immediate feedback as they work. A variety of topics are available, under the general headings of Exploratory Data Analysis, Statistical Inference and Regression Models. Teachers can author and share their own swirl courses using the swirlify package. See also the swirl home page.
- mosaic contains a wide range of tools to assist in teaching of basic, and more advanced ideas and techniques in mathematics, statistics, computation and modelling. Key aspects are the provision of functions that enable beginners easily to perform tasks that would otherwise be difficult and the use of simulation to illustrate randomization-based inference. See the Project MOSAIC homepage for more information.
- xplain can be used to provide bespoke interactive interpretations of the output from statistics functions. This information needs to be provided by the instructor in XML format and may contain R code, to tailor the explanation to the specific results. See the xplain website for a tutorial and cheatsheet.
- animation provides functions to produce animations relating to a wide range of topics in Statistics, Data Mining and Machine Learning. These animations, or a sequence of images generated by the user, may be exported to a variety of formats.
- gganimate animates plots produced by ggplot2. It can be used to render the plots into an animation, such as a GIF or MP4 video .
- smovie provides movies to illustrate concepts in Statistics. Topics covered are: probability distributions; sampling distributions of the mean (cf. central limit theorem), the maximum (cf. extremal types theorem) and the (Fisher transformation of the) correlation coefficient; simple linear regression; hypothesis testing.
- visualize provides graphs of the pdf/pmf of various continuous and discrete probability distributions, annotated with the mean and variance of the distribution. Shading is used to indicate an interval (lower tail, upper tail, two-tailed or a user-supplied interval) within which the random variable lies with a user-supplied probability.
- LearnBayes provides functions and to illustrate the essential ideas of Bayesian inference, such as the roles of the prior, likelihood and posterior; posterior predictive checking and predictive inference, and several example datasets.
- shinybrms provides a shiny app for fitting various types of Bayesian regression models using the brms package. Help text leads the user through the steps of uploading a dataset, specifying a likelihood, setting a prior distribution and making inferences about the posterior distribution. See the package README file and the Getting started page.
- TeachingDemos Provides a wide range of static and interactive plots to demonstrate statistical concepts, including: coin tossing and dice rolling; confidence intervals; various aspects of hypothesis testing; the central limit theorem; maximum likelihood estimation; scatterplot smoothing; histograms; correlation and simple linear regression; Box-Cox transformation.
- distrTeach provides plots to illustrate the Central Limit Theorem (CLT) and the Law of Large Numbers (LLN). The effects on the CLT plots of changing inputs can be shown using a Tcl/Tk-based widget.
- BetaBit provides games for students to play in the R console, including one that involves data-cleaning and regression modelling. See the BetaBit home page .
- DALEX provides functions to explore and understand predictive models. The DALEX GitHub page includes two teaching-related showcases.
- agricolae provides functionality assist the teaching of the design and analysis of statistical experiments, with an emphasis on agricultural field experiments. Designs constructed by agricolae can be visualised using agricolaeplotr.
- LearningRlab is designed to help teach basic statistics to secondary and baccalaureate students. It has functions that provide step-by-step explanations of statistical calculations and functions that prompt the student to perform their own calculations. See the package vignette for examples.
Examination
- exams provides a framework for the automatic random generation of exams and self-study materials from a pool of exercises composed using either Sweave (.Rnw) or R markdown (.Rmd) formats. R code can be used to generate exercise elements dynamically. Questions can be formatted for use in a variety of e-learning platforms or output as documents, for example a PDF file, for which. Scans of PDF answer sheets can be marked automatically. See also the R/exams homepage
- ProfessR creates multiple choice exams from a pool of exercises organised in ASCII test files. Multiple versions of an exam can be created by randomizing the questions and the choices of answers.
- rqti creates exercises and exams in adherence to the QTI v2.1 standard directly from R. Users have the flexibility to render the exercises either locally (using
qti.js
) or integrate them seamlessly into the OPAL learning management system. Exercises can be created as R Markdown files or as rqti
S4 classes. See also the rqti homepage.
- TexExamRandomizer enables the randomization of questions created using LaTeX’s document class for preparing exams. Spreadsheets containing students’ answers can be marked automatically.
Packages associated with Statistics books
The following packages are associated with textbooks that are of potential interest to a general statistical audience, rather than being specific to a particular application area. The general principle for inclusion is that the package is likely to be of direct use in the teaching of statistical methods. Official publisher links are provided where possible and, in some cases, a link to further resources.
- ACSWR: Tattar, P.N., Suresh, R., and Manjunath, B.G. (2016), A Course in Statistics With R , John Wiley and Sons, Inc.
- AER: Kleiber, C. and Zeileis, A. (2008), Applied Econometrics with R , Springer Verlag, New York. Further resources.
- arm: Gelman, A. and Hill, J. (2007), Data Analysis Using Regression and Multilevel/Hierarchical Models , Cambridge University Press. Further resources.
- asbio: Aho, K. A. (2014), Foundational and applied statistics for biologists using R, Routledge. Further resources.
- BayesDA: Gelman, A., Carlin, J., Stern, H., Dunson, D., Vehtari, A., Rubin, D. (2013), Bayesian Data Analysis , Third Edition. New York: Chapman and Hall/CRC. Further resources.
- Bolstad: Bolstad, W. M. and Curran, J. M. (2016), Introduction to Bayesian Statistics , Third Edition. John Wiley and Sons, Inc.
- car, carData, effects: Fox, J, and Weisberg, S. (2019), An R Companion to Applied Regression , Springer Verlag, New York. Further resources .
- CatDataAnalysis: Agresti, A. (2013), Categorical Data Analysis, Third Edition, John Wiley and Sons, Inc.
- faraway: Three books by Julian Faraway: Practical Regression and ANOVA in R (CRAN document), Linear Models with R (2014), CRC Press, Extending the Linear Model with R (2016), CRC Press.
- HH: Heiberger, R. M. and Holland B. (2015), Statistical Analysis and Data Display: An Intermediate Course with Examples in R , Second edition. Springer-Verlag, New York.
- HKRbook: Härdle, W. K., Klinke, S. and Rönz, B. (2015), Introduction to Statistics. Springer Verlag, New York. Further resources.
- HRW: Harezlak J., Ruppert D., and Wand M. P. (2018), Semiparametric Regression with R. Springer Verlag, New York. Further resources.
- HSAUR3: Hothorn, T. and Everitt, B. S. (2014), A Handbook of Statistical Analyses using R , Third Edition. New York: Chapman and Hall/CRC.
- ISwR: Dalgaard, P. (2008), Introductory Statistics with R , Second Edition, Springer Verlag, New York.
- MASS: Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S , Fourth Edition, Springer, New York. Further resources.
- moderndive: Ismay, C. and Kim, A. Y. (2019) ModernDive: Statistical Inference via Data Science . See also infer.
- MPV: Montgomery, D.C., Peck, E. A. and Vining, G. (2012), Introduction to Linear Regression Analysis , John Wiley and Sons, Inc.
- msos: Marden, J. (2015) Multivariate Statistics: Old School , CreateSpace Independent Publishing Platform. Free PDF version.
- openintro: Open-source textbooks and resources for introductory statistics published by OpenIntro.
- regtools: Matloff, N. (2017), Statistical Regression and Classification: from Linear Models to Machine Learning , New York: Chapman and Hall/CRC.
- resampledata: Chihara, L. M. and Hesterberg, T. C. (2018), Mathematical Statistics with Resampling in R , Second Edition, John Wiley and Sons, Inc. Further resources.
- Sleuth2 and Sleuth3: Ramsey, F. and Schafer, D. (2013), The Statistical Sleuth: a Course in Methods of Data Analysis , Brooks / Cole Cengage Learning.
- SMPracticals: Davison, A. C. (2003), Statistical Models , Cambridge University Press. Further resources.
- vcd, vcdExtra: Friendly, M. and Meyer, D. (2015), Discrete Data Analysis with R , New York: Chapman and Hall/CRC. Further resources.
- wooldridge: Wooldridge, J. M. (2016), Introductory Econometrics: A Modern Approach , Seventh edition, CENGAGE Learning Custom Publishing.
CRAN packages
Core: | animation, BayesDA, exams, MASS, mosaic, Rcmdr. |
Regular: | ACSWR, AER, agricolae, agricolaeplotr, arm, asbio, BetaBit, Bolstad, car, carData, CatDataAnalysis, DALEX, distrTeach, effects, faraway, gganimate, ggplot2, HH, HKRbook, HRW, HSAUR3, infer, ISwR, LearnBayes, LearningRlab, moderndive, MPV, msos, openintro, ProfessR, regtools, resampledata, rqti, shinybrms, Sleuth2, Sleuth3, smovie, SMPracticals, swirl, swirlify, TeachingDemos, TexExamRandomizer, vcd, vcdExtra, visualize, wooldridge, xplain. |
Related links
Other resources