allocation_rule: Create a new treatment allocation rule

allocation_ruleR Documentation

Create a new treatment allocation rule

Description

new_rule() is used as a base to create a new treatment allocation rule subclass. Define a rule_evaluate() method to implement functionality. The package's allocation rules are listed in the "See Also" section.

Usage

new_rule(parameters = list(), state = list(), class = character())

Arguments

parameters

List of user-supplied parameters for the rule.

state

List of values the rule keeps track of over evaluations.

class

Name of the rule subclass to create.

See Also

Other allocation rules: arjas_gasbarra(), random_allocation(), randomization_list(), thompson()


Orion-Corporation/barts documentation built on July 13, 2022, 10:23 p.m.