Seed setting: why is the output different after no change in input
问题 Setting a seed ensures reproducibility and is important in simulation modelling. Consider a simple model f() with two variables y1 and y2 of interest. The outputs of these variables are determined by a random process ( rbinom() ) and the parameters x1 and x2 . The outputs of the two variables of interest are independent of each other. Now say we want to compare the change in the output of a variable after a change in the respective parameter has occurred with a scenario before the change was