RandomConfiguration Reference Class
Source:R/class_random_configuration.R
RandomConfiguration-class.RdRepresents a randomization configuration for a project, including treatment arms, seed, buffer sizes, and optional factor IDs. Provides methods for initialization, display, and validation of configuration parameters.
Fields
uniqueIdCharacter string uniquely identifying the configuration instance.
creationDatePOSIXct timestamp of configuration creation.
randomProjectRandomProjectobject associated with this configuration.seedInteger random seed used for reproducibility.
ravBufferMinimumSizeInteger specifying the minimum buffer size for allocation values.
ravBufferMaximumSizeInteger specifying the maximum buffer size for allocation values.
treatmentArmIdsCharacter vector of treatment arm IDs.
factorIdsCharacter vector of factor IDs (optional).
Methods
- initialize(..., creationDate, seed, ravBufferMinimumSize, ravBufferMaximumSize)
Initializes a new
RandomConfigurationinstance, validates buffer sizes, assigns a unique ID, and sets the seed.- show(prefix)
Displays a summary of the configuration.
- toString(prefix)
Returns a string representation of the configuration and its fields.
- getDoubleValue()
Returns the double value (if defined).
- getSeed()
Returns the seed value, validating its integrity.