R toolbox: open your data set in R with read.csv and the “here” package

I like to save my rawdata in csv format (from excel, Stata or other sources), which makes the access easy as well as it is a durable file format that most likely will be relatively unaffected by new versions of software and thus is a good file format for archiving your data. Make sure that …

From Fabbe’s R tool box: Mixed model regression analysis of a longitudinal two (or more) group design with a nice graph

In the following example we will fit a mixed model regression analysis. In our design we have time as one independent variable, Responder status as another independent variable and we have a dependent variable, the outcome, that we believe is affected by both time and Responder status. In our model we assume that individual trajectories …

From Fabbe’s R toolbox: How to make a publication-friendly correlation matrix with R

This tutorial will provide you with 4 straight forward steps on how to create a nice and neat publication-friendly correlation matrix with R Studio and Markdown. It has taken me a lot of time and googling around to figure out how to create the automated, well formatted tables that I wanted for my own manuscripts, …