R Tools

It takes some time to get familiar with R and build a library of code that you can use for your purposes. Here I share some of my go-to code, a result of numerous hours of googleing and asking questions on nerdy forums.

The code that I present will be most useful for researchers and analysts in medical and behavioral research. A typical situation is that you have a binary, ordinary or continuous outcome and you want to understand its course over time, dependent on different groups of individuals or how the outcome is affected by different other variables.

The R Tools are divided in 3 sections: Prepare, Visualize and Analyze, as this is a common workflow when using R and other statistical programs.