Skip to contents

Perform pre-specified analyses for an interim monitored trial design

Usage

monitored_analysis(
  data,
  monitored_design = NULL,
  estimation_function,
  estimation_arguments,
  correction_function = NULL,
  control = monitored_analysis_control(),
  ...
)

Arguments

data

A data.frame containing the data to be analyzed. A column named .id indicates which observations correspond to each individual.

monitored_design

An object of class monitored_design created using initialize_monitored_design()

estimation_function

A function whose arguments include a data.frame named data

estimation_arguments

A list of any additional arguments needed by estimation_function

correction_function

A function which takes the arguments supplied to estimation_function and returns a numeric scalar which performs a small sample correction to the variance estimate

control

A list containing the control arguments for computation, typically created with monitored_analysis_control()

...

Additional arguments, currently ignored

Value

An object of class monitored_design

Examples

# To be added