Articles by Sandy Muspratt

Working with R2MLwiN Part 2

February 19, 2013 | Sandy Muspratt

Specifying the modelThis is the second part of a series of notes demonstrating use of the R package, R2MLwiN, an R command interface to the multilevel modelling software package, MLwiN (see the MLwiN site for getting access to MLwiN). The first set of notes showed how to get started ... [Read more...]

Scatterplot with marginal boxplots

February 3, 2013 | Sandy Muspratt

Using R and ggplot2 to draw a scatterplot with the two marginal boxplotsDrawing a scatterplot with the marginal boxplots (or marginal histograms or marginal density plots) has always been a bit tricky (well for me anyway). The approach I take here is, first, to draw the three separate plots using ... [Read more...]

Working with R2MLwiN Part 1

January 24, 2013 | Sandy Muspratt

Getting started with the R2MLwiN packageWith the release of the R2MLwiN package late 2012, R users have access to another software package for running Bayesian models using Markov chain Monte Carlo (MCMC) methods. R2MLwiN is an R command interface to MLwiN, allowing users to fit multilevel models using ... [Read more...]

Getting Access data into R

January 9, 2013 | Sandy Muspratt

1. IntroductionThese notes give the steps to configure a Windows machine so that R can communicate with Microsoft Access databases. It turns out that the same mechanism can be used to connect with Microsoft Excel workbooks, so the notes include R to Excel communication as well. In R, there are two ... [Read more...]

R and SQLite: Part 1

November 18, 2012 | Sandy Muspratt

Creating SQLite databases from R 1. IntroductionThese notes show how to create an SQLite database from within R. The notes outline two way in which R can communicate with SQLite databases: using the RSQLite package and using the sqldf package. Both packages use reasonably standard versions of SQL to administer and ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)