Skip to content

Commit 3497456

Browse files
committed
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.
1 parent 5a1f271 commit 3497456

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hiv_synthesis.sas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16570,9 +16570,6 @@ drop i;
1657016570

1657116571
data r&da2; merge r&da1 s ;
1657216572

16573-
* for reproducing a run;
16574-
call streaminit(&e);
16575-
1657616573
* 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
1657716574
variable not to exist in the data set;
1657816575

@@ -17334,6 +17331,9 @@ s_prop_w_vlg5 s_prop_w_vlg6 s_prop_y181m s_sw s_w_newp ;
1733417331

1733517332
data r&da2; set r&da2;
1733617333

17334+
* for reproducing a run;
17335+
call streaminit(&j);
17336+
1733717337
if age >= year_start;
1733817338

1733917339

0 commit comments

Comments
 (0)