Nothing
#' Updating Data Generators of One or More Endpoints in an Arm
#'
#' @description
#'
#' update endpoint generator in an arm. This function can be useful in, e.g.,
#' enrichment design where generator is updated so that patients are enrolled
#' from sub-population afterwards. This function can also be used when data
#' model changes over time, i.e., generating data in a new way after a milestone.
#' This function can be called multiple times to update generators of endpoints
#' one by one.
#'
#' Note that this function should only be called within action functions of
#' milestones. It is users' responsibility to ensure that and
#' \code{TrialSimulator} has no way to track it.
#'
#' This is a user-friendly wrapper of the member function of trial, i.e.,
#' \code{Trials$update_generator()}, which is used in vignettes. Users who are
#' not familiar with the concept of classes may consider using this wrapper
#' directly.
#'
#' @param trial a trial object returned by \code{trial()}.
#' @param arm_name character. Name of an arm.
#' @param endpoint_name character. A vector of endpoint names whose generator
#' is updated.
#' @param generator a random number generation (RNG) function.
#' See generator of \code{endpoint()}.
#' @param ... optional arguments for generator.
#'
#' @return no return value, called for its side effect of updating \code{trial}.
#'
#' @export
#'
update_generator <- function(trial, arm_name, endpoint_name, generator, ...){
trial$update_generator(arm_name = arm_name,
endpoint_name = endpoint_name,
generator = generator, ...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.