From 34974569f6e9313a184f02de6dce4fec3b6ad3a3 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Mon, 20 Sep 2021 18:02:05 +0100 Subject: [PATCH] Set seed at correct place for repetition There is an additional data step for r&da2, where the seed was not set before. The place where it was set did not involve any randomness. Also use the more appropriate macro variable, as e was not strictly increasing. --- hiv_synthesis.sas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hiv_synthesis.sas b/hiv_synthesis.sas index d0cc726b..bd5cfc42 100644 --- a/hiv_synthesis.sas +++ b/hiv_synthesis.sas @@ -16570,9 +16570,6 @@ drop i; data r&da2; merge r&da1 s ; -* for reproducing a run; -call streaminit(&e); - * these variables below need creating so that can use t_ version in main code and then use s_ in the sum statments - sum statements need the sum variable not to exist in the data set; @@ -17334,6 +17331,9 @@ s_prop_w_vlg5 s_prop_w_vlg6 s_prop_y181m s_sw s_w_newp ; data r&da2; set r&da2; +* for reproducing a run; +call streaminit(&j); + if age >= year_start;