Page 39
-
Lattice when modeling, ggplot when publishing
When working in research projects I tend to fit several, sometimes quite a few, alternative models. This model fitting is… -
Linear mixed models in R
A substantial part of my job has little to do with statistics; nevertheless, a large proportion of the statistical side… -
Maximum likelihood
This post is one of those ‘explain to myself how things work’ documents, which are not necessarily completely correct but… -
Simulating data following a given covariance structure
Every year there is at least a couple of occasions when I have to simulate multivariate data that follow a… -
Setting plots side by side
This is simple example code to display side-by-side lattice plots or ggplot2 plots, using the mtcars dataset that comes with… -
Upgrading R (and packages)
I tend not to upgrade R very often—running from 6 months to 1 year behind in version numbers—because I had… -
Reading HTML pages in R for text processing
We were talking with one of my colleagues about doing some text analysis—that, by the way, I have never done… -
Operating on datasets inside a function
There are times when we need to write a function that makes changes to a generic data frame that is… -
A brief idea of style
Once one starts writing more R code the need for consistency increases, as it facilitates managing larger projects and their… -
All combinations for levelplot
In a previous post I explained how to create all possible combinations of the levels of two factors using expand.grid().…