Published December 30, 2024 | Version v1
Report Open

CODECHECK certificate 2024-024

  • 1. ROR icon Amsterdam UMC Location VUmc

Description

CODECHECK certificate for the article "Evaluating individualized treatment effect predictions: A model-based perspective on discrimination and calibration assessment".

Summary: The three R scripts comprising this project were fairly straightforward to execute. I had some issues getting the simulation script (sim.R) running. It kept throwing an error but the specifics were masked by the usage of doParallel – you only get the error about “cannot open connection” but the problem was actually that the results folder did not exist. Once this was created, the script executed fine. The results folder is not necessary if users are only interested in producing the plots and tables in replicate.R, because by default that script loads in pre-computed simulated data. The full simulation had to be run overnight (~6 hours) on a standard laptop.

The figures are not saved automatically. Because each figure is constructed within a loop, I could not easily add in a ggsave() to save the figures using specific dimensions and DPI. The tables are generated automatically but the script appears to only generate the corresponding LaTeX syntax and print it to the Console. To actually do the codecheck, I copied the replicate.R code into a .qmd file and displayed the tables using flextable.

Files

codecheck.pdf

Files (796.5 kB)

Name Size Download all
md5:4612d1188f265d51e4c2e45533c5cf5b
796.5 kB Preview Download

Additional details

Identifiers

URL
http://cdchck.science/register/certs/2024-024
Other
cdchck.science/register/certs/2024-024

Related works

Is derived from
Computational notebook: https://github.com/codecheckers/iteval-sims (URL)
Reviews
Journal article: 10.1002/sim.10186 (DOI)

Software

Repository URL
https://github.com/langtonhugh/iteval-sims
Programming language
R
Development Status
Active