Blog Archives

Customising ProjectTemplate in R

May 28, 2014
By

This post talks about my workflow for getting started with a new data analysis project using the ProjectTemplate package. Overview of ProjectTemplate ProjectTemplate is an R Package which facilitates data analysis, encourages good data analysis habit...

Read more »

Using R to replicate common SPSS multiple regression output

December 4, 2013
By

(This article was first published on Jeromy Anglim's Blog: Psychology and Statistics, and kindly contributed to R-bloggers) The following post replicates some of the standard output you might get from a multiple regression analysis in SPSS. A copy of the code in RMarkdown format is available on github. The post was motivated by this previous post that discussed using...

Read more »

Evaluating the Potential Incorporation of R into Research Methods Education in Psychology

July 17, 2013
By

I was recently completing some professional development activities that required me to write a report on a self-chosen topic related to diversity in student backgrounds. I chose to use the opportunity to reflect on the potential for using R to teach psychology students research methods. I thought I'd share the report in case it interests anyone. Abstract...

Read more »

Video: knitr, R Markdown, and R Studio: Introduction to Reproducible Analysis

July 19, 2012
By

This post presents the video of a talk that I presented in July 2012 at Melbourne R Users on using knitr, R Markdown, and R Studio to perform reproducible analysis. I also provide links to a github repository where the R markdown examples can be examin...

Read more »

Converting Sweave LaTeX to knitr LaTeX: A case study

June 9, 2012
By

The following post documents the steps I needed to take in order to convert a project using Sweave LaTeX into one using knitr LaTeX. Additional Resources It is fairly straightforward to convert a document from Sweave LaTeX to knitr LaTeX. Yihui Xie on...

Read more »

How to Convert Sweave LaTeX to knitr R Markdown: Winter Olympic Medals Example

June 4, 2012
By
How to Convert Sweave LaTeX to knitr R Markdown: Winter Olympic Medals Example

The following post shows how to manually convert a Sweave LaTeX document into a knitr R Markdown document. The post (1) reviews many of the required changes; (2) provides an example of a document converted to R Markdown format based on an analysis of Winter Olympic Medal data up to and including 2006; and (3) discusses the pros...

Read more »

Example Reproducible Report using R Markdown: Analysis of California Schools Test Data

May 18, 2012
By
Example Reproducible Report using R Markdown:  Analysis of California Schools Test Data

This is a quick set of analyses of the California Test Score dataset. The post was produced using R Markdown in RStudio 0.96. The main purpose of this post is to provide a case study of using R Markdown to prepare a quick reproducible report. It provides examples of using plots, output, in-line R code, and...

Read more »

Getting Started with R Markdown, knitr, and Rstudio 0.96

May 16, 2012
By
Getting Started with R Markdown, knitr, and Rstudio 0.96

This post examines the features of R Markdown using knitr in Rstudio 0.96. This combination of tools provides an exciting improvement in usability for reproducible analysis. Specifically, this post (1) discusses getting started with R Markdown and knitr in Rstudio 0.96; (2) provides a basic example of producing console output and plots...

Read more »

How to plot three categorical variables and one continuous variable using ggplot2

May 3, 2012
By
How to plot three categorical variables and one continuous variable using ggplot2

This post shows how to produce a plot involving three categorical variables and one continuous variable using ggplot2 in R. The following code is also available as a gist on github. 1. Create Data First, let's load ggplot2 and create some data to work...

Read more »

Getting Started with JAGS, rjags, and Bayesian Modelling

April 10, 2012
By

This post provides links to various resources on getting started with Bayesian modelling using JAGS and R. It discusses: (1) what is JAGS; (2) why you might want to perform Bayesian modelling using JAGS; (3) how to install JAGS; (4) where to find furth...

Read more »