Category : Tips

How to set up Repeated-Measures Regressions in R

We analyze within-subjects designs with repeated-measures regressions, aka random-effects models. Learn how to set up such models in R. This concerns analyzing data with grouping, clustering, aka. hierarchical data, data with correlated errors, or data with violations of sphericity.

Make Sublime Text 3 talk to Github

How to make Sublimetext 3 work with your online Github repository? Git is for version control, while GitHub is for sharing code. Here’s a five-step instruction how to connect Sublimetext to Git, and Git to GitHub.

How to create R-Packages

Do you need some functions over and over again? Tired of sourcing them to multiple projects? Wrap functions in an R package (Windows)

R does not round 2.5 to 3

In R’s default round() functions, odd numbers ending with .5 are rounded up (1.5 becomes 2), but even numbers are rounded down (2.5 becomes 2, rather than 3). This is compliant with a norm on rounding as outlined in the R documentation, but sometimes inconvenient.

RGL Package for animated graphs

I recently discovered the RGL package for R to create animated graphs. I used it for 3D-surface plots for likelihood functions – I’ll post about this soon. The R mailing list posted this fun animation of cubes by Francis Smart using the very samen package.