Skip to content

Commit

Permalink
Set seed at correct place for repetition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ageorgou committed Sep 20, 2021
1 parent 5a1f271 commit 3497456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hiv_synthesis.sas
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;


Expand Down

0 comments on commit 3497456

Please sign in to comment.