This website is made to share the assignments I worked out for statistic courses in the Epidemiology Graduate Program of the Julius Center, Utrecht, the Netherlands

Blog posts

pre-testing and type-I error rates: re-analysis of Rasch

the circle dance: strategy for positioning at equidistance in a group

Worked-out assignments

Modern Methods in Data Analysis

assignments week 1

assignments week 2

Advanced methods in causal research

assignments Advanced methods in causal research

Generalized linear models

assignments

Prognostic research

assignments

Mixed models

assignments

presentation

Applied Bayesian statistics

presentation

Missing data

assignments

Notes and commmon errors

working directory

Due to how this website was made, the R-code ‘thinks’ it is in the analysis subdirectory, while the data sits in the data directory, which is found from the parent directory. Working with Rmarkdown and keeping track of the directory is not too easy at all. After modern methods, I switched to using the package here, which is specifically designed to target such problems.

Before that I used the function fromParentDir, which allows you to call files from the parent directory. The function can be found in the package epistats, which can be installed with devtools::install_github("vanAmsterdam/epistats")

If devtools is not yet installed, first run install.packages("devtools")

packages and functions

Sometimes different packages provide functions with the same names. To make sure you use the intended function (and to circumvent using library(package)), use <package>::<function> to use <function> from package <package>, like epistats::fromParentdir


This R Markdown site was created with workflowr