drizopoulos / JM

Joint Models for Longitudinal & Survival Data under Maximum Likelihood
34 stars 7 forks source link

Reset seed inside "Subject" `else` clause #6

Closed vkehayas closed 6 years ago

vkehayas commented 6 years ago

Resetting the seed in the case the user has chosen marginal predictions results in a warning on a subsequent second run because no seed is generated after .Random.seed has been deleted. Only when a seed is created by a random number generator function inside the else clause starting in line 38, is rm(list = ".Random.seed", envir = globalenv()) not causing this warning.