This function can be useful in simulation studies in which some random variables, e.g. explanatory variables X shall always be drawn in the same fashion, while other data, like disturbances epsilon shall differ between runs. One can then draw the X using with.random.seed to guarantee the same X in every simulation run.
## S3 method for class 'random.seed' with(expr, seed = 1234567890)
an R expression that returns some random value
an integer number that will be used to call set.seed
the value of expr evaluated under the specifed random seed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.