run.benchmark
functiongetEntropy
calculates entropy of allocation ratios at each time steprun.benchmark
functionsampler.ucb1.normal
when all UCB are the sameheuristic = FALSE
by defaultsampler
methodsdynamic.count
slot for UCB algorithm to batch allocate patientssampler.ucb1
uses a batch-based upper confidence bound (UCB) algorithmsampler.ucb1.normal
uses a batch-based upper confidence bound (UCB) algorithmsampler.epsilon.greedy
uses an epsilon-greedy algorithmscheduler.start
expect a character for sampler
run.benchmark
expect a character for how.stats
sampler
function...
arguments to all sampler
functionssampler
functionsampler.auc.cutoff
to allocate patients based on p(sample > cutoff)sampler.auc.reference
to allocate patients based on p(sample > reference)scheduler.start
will save ...
args to sampler.args
slotsampler
during an updateprior.prec
and post.prec
slots for simplicityrun.benchmark
methodfast
argument to measure p-value at final time step onlysampler
methodssampler.fixed
will allocate patients at a fixed ratiosampler.auc
will allocate patients proportional to p(posterior > cutoff)prior.alpha
and prior.beta
slots to anticipate normal-gamma conjugateprior.var
and prior.prec
save marginal values for backwards compatibility)post.alpha
and post.beta
slots to anticipate normal-gamma conjugatepost.var
and post.prec
save marginal values for backwards compatibility)heuristic
argument to toggle normal-gamma usescheduler
object save name of sampler methodrun.trial
iterates simulator.draw
and scheduler.update
stepsrun.benchmark
estimates proportion of (p < alpha)sampler.
prefixstats.anova
computes a p-value from the rewardsstats.ttest
computes p-values from the rewardsstats.empiric
computes empiric p-values@meta
slot for future updatesgetDivergences
function can calculate divergence between two posteriorsgetPermutations
function can permute rewards in scheduler
objectsimulator
rewardsscheduler
class for scheduling trialsscheduler.start
creates a new scheduler
objectscheduler.update
updates a scheduler
object with new datasimulator
class for simulating datasimulator.start
creates a new simulator
objectsimulator.draw
draws data from a simulator
objectscheduler
decides on the allocation, which is passed to the simulator
simulator
draws patient data from the pool, which is passed back to the scheduler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.