This is the code used in the work:
Gregorio, C., Barbati, G., & Ieva, F. (2022). A wavelet-mixed effect landmark model for the effect of short-term oscillations in longitudinal biomarker's profiles on the risk of death: an application for the monitoring of potassium in Heart Failure. arXiv preprint arXiv:2204.05870.