Tutorials and Workshops on R and statistics
02 Mar 2018
This series of tutorials and workshops will gradually work through an extensive range of frequentist and Bayesian graphical and statistical theory and practice (focusing on R or JAGS interfaced from R). It is advisable that you initially work through the following tutorials and associated workshops sequentially.
The tutorial series makes use of artificial data. The reasons for doing so are:
Where possible and appropriate, the workshop series users real research scenarios and data gleaned
largely from the worked examples of major Biostatistical texts so as to take advantage of the history and information surrounding
those examples as well as any familiarity that users may have with those examples.
These workshops are designed to provide extensive guided practice of the concepts and techniques highlighted in the tutorials.
- simulating data allows us to fabricate the true underlying trends responsible for the data and therefore enable us to evaluate how accurately the analyses tools subsequently reveal these trends.
- the process of simulating data is typically the reverse of analysing the data. There must be consideration for how the response is to relate to the predictors, the scale (normal, binomial, Poisson etc) of variables and parameters as well as how to incorporate sensible variability (noise). Thus the process of simulating data specifically for a particular statistical analysis can be as informative as a description of the analysis itself.
The use of real data in the workshops:
- provides a greater familiarity and appreciation of the nature and issues surrounding real data
- provide insights into the diversity of analyses options and challenges presented by real data.
- allows researchers to better associate the links between data and research features with analysis decisions
Hence together, the tutorials and workshops provide a rich mixture of generic and specific analytical demonstration and practice. I hope you find them useful - Enjoy!
R syntax
Topic 1 - R basics
«Goto Tutorial»
Topics covered
- Installation of R
- Basic syntax
- Data types
- Object manipulation
- R Editors
«Goto Tutorial»
«Goto Workshop»
Topic 2 - R Dataframes
Topics covered
- Constructing dataframes Tutorial
- Importing (reading) and exporting (writing) dataTutorial
- Vectors within dataframesTutorial
- Manipulating dataframesTutorial
- Reshaping dataframes
- Merging dataframes
- Aggregating dataframes
- Transformations and derivatives
- Alterations
- List manipulations
- More complex manipulations
- Simulated data sets - random data generation Tutorial
Topic 3 - More advanced R
Introductory statistical principles
Topic 4 - Basic statistics
R data summaries - numerical and graphical
Topic 5 - R graphics
Statistical modeling
Topic 6 - Simple hypothesis testing
Topic 7 - Linear models
Topic 8 - Heterogeneity and autocorrelation
Topics covered
Topic 9 - Linear mixed effects models
Topic 10 - Frequency analyses and generalized linear models
Topic 11 - Generalized linear mixed models
Topic 12 - Non-linear models
Topics covered
- Polynomial models Bayesian Tutorial Frequentist Tutorial
- Non-linear models Bayesian Tutorial Frequentist Tutorial
- Lowess (loess) regression Bayesian Tutorial Frequentist Tutorial
- Piecewise regression Bayesian Tutorial Frequentist Tutorial
- Splines Bayesian Tutorial Frequentist Tutorial
- Generalized additive models
- Classification and regression trees
- Simple trees Bayesian Tutorial Frequentist Tutorial
- Boosted regression trees Bayesian Tutorial Frequentist Tutorial
- Multivariate regression trees Bayesian Tutorial Frequentist Tutorial
- Integrated Nested Laplace Approximation (INLA)
Multivariate analyses
Topic 13 - Multivatiate data
Topic 14 - R-mode analyses
Topic 15 - Q-mode analyses
Reproducible research
Topic 17 - Document languages
Topic 18 - knitr
Other topics
Topic 16 - Emacs
«Goto Workshop»
«Goto Workshop»
Topics covered
- Itemsets
«Goto Workshop»
«Goto Workshop»
Topic 19 - Git and version control
«Goto Tutorial»
Topics covered
- ItemsetsGit
«Goto Tutorial»