adaptr1.4.0 package

Adaptive Trial Simulator

setup_trial

Setup a generic trial specification

assert_pkgs

Check availability of required packages

equivalent_funs

Assert equivalent functions

adaptr-package

adaptr: Adaptive Trial Simulator

calculate_idp

Calculate the ideal design percentage

calibrate_trial

Calibrate trial specification

cat0

cat() with sep = ""

check_performance

Check performance metrics for trial simulations

check_remaining_arms

Check remaining arm combinations

cov_mat

Estimates covariance matrices used by Gaussian process optimisation

dispatch_trial_runs

Simulate single trial after setting seed

extract_history

Extract history

extract_results

Extract simulation results

extract_results_batch

Extract results from a batch of trials from an object with multiple tr...

extract_statuses

Extract statuses

find_beta_params

Find beta distribution parameters from thresholds

fmt_dig

Format digits before printing

fmt_pct

Create formatted label with absolute and relative frequencies (percent...

run_trials

Simulate multiple trials

get_draws_binom

Generate draws from posterior beta-binomial distributions

get_draws_generic

Generic documentation for get_draws_* functions

get_draws_norm

Generate draws from posterior normal distributions

get_ys_binom

Generate binary outcomes from binomial distributions

get_ys_norm

Generate normally distributed continuous outcomes

gp_opt

Gaussian process-based optimisation

make_x_scale

Make x-axis scale for history/status plots

make_y_scale

Make y-axis scale for history/status plots

plot_convergence

Plot convergence of performance metrics

plot_history

Plot trial metric history

plot_metrics_ecdf

Plot empirical cumulative distribution functions of performance metric...

plot_status

Plot statuses

pow_abs_dist

Calculates matrix of absolute distances raised to a power

print

Print methods for adaptive trial objects

prob_all_equi

Calculate the probability that all arms are practically equivalent

setup_cluster

Setup default cluster for use in parallelised adaptr functions

prob_best

Calculate the probabilities of each arm being the best

prob_better

Calculate probabilities of comparisons of arms against with common con...

prog_breaks

Generate breakpoints and other values for printing progress

reallocate_probs

Update allocation probabilities

replace_nonfinite

Replace non-finite values with other value (finite-OR-operator)

replace_null

Replace NULL with other value (NULL-OR-operator)

rescale

Rescale numeric vector to sum to 1

run_trial

Simulate a single trial

setup_trial_binom

Setup a trial specification using a binary, binomially distributed out...

setup_trial_norm

Setup a trial specification using a continuous, normally distributed o...

stop0_warning0

stop() and warning() with call. = FALSE

summarise_dist

Summarise distribution

summarise_num

Summarise numeric vector

summary

Summary of simulated trial results

update_saved_calibration

Update previously saved calibration result

update_saved_trials

Update previously saved simulation results

validate_trial

Validate trial specification

vapply_helpers

vapply helpers

verify_int

Verify input is single integer (potentially within range)

which_nearest

Find the index of value nearest to a target value

Package that simulates adaptive (multi-arm, multi-stage) clinical trials using adaptive stopping, adaptive arm dropping, and/or adaptive randomisation. Developed as part of the INCEPT (Intensive Care Platform Trial) project (<https://incept.dk/>), primarily supported by a grant from Sygeforsikringen "danmark" (<https://www.sygeforsikring.dk/>).

  • Maintainer: Anders Granholm
  • License: GPL (>= 3)
  • Last published: 2024-05-03