Résumé : Method: We retroactively derived markers of vagal nerve activity indexed by heart rate variability (HRV), specifically the root mean square of successive differences (RMSSD), from patients' electrocardiograms near diagnosis. The NIM index was the ratio of RMSSD to C-reactive protein levels (RMSSD/CRP). Sample 1 included 202 Belgian patients with advanced pancreatic cancer (PC), while sample 2 included 71 Belgian patients with non-small cell lung cancer (NSCLC). In both samples, we examined the overall survival, while in sample 2, we additionally examined the survival time in deceased patients.