Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setSeed

Helper function to set and save the RNG seed


Description

This is basically copied from simulate.lm

Usage

setSeed(seed = NULL)

Arguments

seed

an object specifying if and how the random number generator should be initialized (“seeded”). Either NULL (default) or an integer that will be used in a call to set.seed before simulating the response vectors. If set, the value is saved as the seed slot of the returned object. The default, NULL will not change the random generator state.

Value

The RNGstate will be returned, in order to call this function with this input to reproduce the obtained simulation results

Author(s)

Daniel Sabanes Bove sabanesd@roche.com


crmPack

Object-Oriented Implementation of CRM Designs

v1.0.0
GPL (>= 2)
Authors
Daniel Sabanes Bove [aut], Wai Yin Yeung [aut], Giuseppe Palermo [aut, cre], Thomas Jaki [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.