This lesson describes how to configure a dynamic randomization in Viedoc Admin.
http://help.viedoc.net/l/2e752a/en/
This is a single-sourced file that should have the following content:
Introduction to randomization
Detailed instructions regarding these steps are described in:
An example of how to configure a dynamic randomization is described in detail in the following lesson:
For a video tutorial on how to configure a static list randomization and a dynamic randomization, see:
Important! The randomization feature must be included in your study license in order for the randomization configuration to be available in production mode. You can still configure a randomization in demo mode without a license. |
On the randomization page, under the Demo tab, you can create the configuration and perform all the configuration actions for the dynamic randomization, and select the Edit settings and generate new list link.
If your study license has the randomization feature included, it will be shown on the Study settings page under Included features on the Settings tab:
If your study either does not have a license key (Reference ID), or has a license key that does not include the randomization feature, on the randomization page, under the Production tab:
For more information on licensing, see Overview of Viedoc
For dynamic randomization, the randomization service in Viedoc allocates a treatment to the subject based on previously given information. That means that the probability of a subject getting assigned to a treatment will change depending on previous assignments. This way, dynamic randomization ensures a more even distribution of the subjects across factors and treatments for each site.
For dynamic randomization, you do not need to upload a randomization list in the beginning of the study. Instead, you need to configure an algorithm for how the probability of assignments will be calculated. The randomization service in Viedoc then creates a randomization list while assigning subjects to treatments.
Viedoc offers the Pocock and Simon method for dynamic randomization. The Pocock and Simon method aims to minimize imbalance in the distribution of subjects across the treatment groups, with regard to prognostic factors that might influence the effect of treatment on the subjects. It does so by hypothetically assigning a new subject to each of the treatment groups and calculating the amount of imbalance for each assignment. The method then assigns the subject to the treatment group with the smallest imbalance.
When configuring a Pocock and Simon randomization, it is possible to set the relative importance of the factors, and the desired division of treatments to be allocated. Two different variation methods can be chosen: Range and Range squared, see Concepts and terminology for dynamic randomizatons for more information.
The original statement of the Pocock and Simon method was deterministic, random number values were only used in tie-breaking situations. The randomization service in Viedoc is based on a modified Pocock and Simon method in which every randomization decision depends on a random number. For this, Donald E. Knuth's subtractive random number generator algorithm is used, see References.
The underlying theory for the dynamic randomization method that is implemented in Viedoc is described in the following articles:
The Donald E. Knuth's subtractive random number generator algorithm that is used in the modified Pocock and Simon method implemented in Viedoc is described in the following article:
In Viedoc, the same annotations as in the above mentioned articles are used.
Term | Description |
---|---|
Factor weight |
The relative importance of a factor when calculating imbalance, set as an integer value greater than zero. For example, if it is more important to achieve balance in the factor Gender than in the factor Age, then a factor weight of 2 could be set on Gender and a factor weight of 1 set on Age. |
Outcome weight |
Allocation ratio. The desired division of treatments to be allocated. For example, if we have three treatments, A, B and C, and we would like treatment A to be allocated 50% of the time, and treatment B and C 25% of the time respectively, we would set the allocation ratio as follows: Treatment A: 2, Treatment B: 1, and Treatment C: 1. |
D | The amount of variation in the set of values for a factor, that is, the imbalance for one factor. The amount of variation can be calculated as:
Tip! Range square increases the spread of the distribution and may be useful if you have many factors. Note! When calculating D, the allocation ratio is taken into account. A treatment that should be allocated more often (that is, has a higher outcome weight) has its D reduced so as to favour the treatment. |
G |
The total amount of imbalance across all factors. G is calculated by multiplying D for each factor with its factor weight, and then summing this up for all factors. In other words, G is calculated as the weighted sum of {dik}, where dik is the lack of balance among treatment assignments. The weighted sum is used when some prognostic factors are considered more important than others. If it is more important to obtain balance across a certain factor, this factor will get a higher factor weight. Thus its imbalance will have a larger impact on the G, which will make the treatment assignment leading to that specific G more unfavourable. If D is calculated as range square, the range is squared before any factor weight is applied. |
P (p) |
The probability with which the treatment that minimizes imbalance is assigned. The probability determines the extent to which one wishes to favour the treatment group that would lead to the smallest imbalance. During the randomization, the probability P for each treatment assignment is calculated, based on a probability cut-off. This probability cut-off (referred to as p below) is a static decimal between 0 and 1 that is provided by a statistician. In Viedoc, the probability cut-off has to be entered as x/1000. So for a p of 0.8 (80%), the number 800 should be entered. During randomization, P for each treatment will be distributed as follows:
|
Random | A random number between 0 and 1, generated using Donald E. Knuth's subtractive random number generator algorithm. |
seed | A value that is used to initialize the random number generator and that is based on the number of ticks to represent the current date. |
In the section A use case for dynamic randomization, a detailed example of how to configure a dynamic randomization is provided. This use case example also describes the algorithm, and the calculations that are executed by Viedoc in order to assign a subject to a treatment group.
Note! The randomization page is only visible for users with the role Unblinded Statistician.
Once the randomization mapping has been set up in Viedoc Designer, the RTSM field appears for users with the role Unblinded Statistician. When you click the toolbox icon in the RTSM field, the Randomizations pop-up opens. Here you can do the following:
1. Choose the type of the allocation list to be used:
2. View a list of randomizations that have been added to your study.
3. Open the Randomization page to configure the randomization or view the randomization details.
Note! If no randomization configuration is created, it is not possible to randomize a patient in Viedoc Clinic.
On the Randomization page, you can view or do the following:
4. View the items, and their code lists, that have been mapped as input factors.
5. View the items, and their code lists, that have been mapped as outcome and blinded outcome.
6. Set up the randomization list by defining:
7. Optional: set up the allocation list by defining:
8. Select the randomization method.
9-17. You can test the randomization in demo mode by uploading dummy randomization lists and dummy allocation lists to make sure everything works as expected before randomizing patients in production mode. Click the tab (8) to switch between demo mode and production mode.
10. View the details of the randomization list for the different scopes: the scope (in this example the study) and the status (Active, Inactive or Not initiated). In this field, you can upload the randomization list by clicking Upload (not visible in the image). Once a randomization list has been uploaded, icon 11 and 12 appear.
11. Download a template (Excel file) for the randomization list.
12. View the randomization list. An Excel file is downloaded. For a description of the randomization list, see The randomization list.
13. Edit the randomization list. You can select one of the two following options:
14. View the details of the allocation lists for the different scopes: the scope (in this example the sites, for each scope a different allocation list needs to be uploaded) and the status (Active, Inactive or Not initiated). In this field, you can upload the randomization list by clicking Upload. Once a randomization list has been uploaded, icon 15 and 16 appear.
15. Download a template (Excel file) for the allocation list.
16. View the allocation list. An Excel file is downloaded. For a description of the allocation list, see The allocation list.
17. Edit the allocation list here, if you selected to use Individual allocation list. You can select one of the two following options:
The numbers in front of the study name and site names in the Randomization List and Allocation List fields (5228, 18213, 18215, and 18217 in the image) are the study identification number and site identification numbers that are generated by the system and used for internal identification of study and sites.
Once the randomization is started, it is possible to view the randomization list by clicking View in the Randomization List field (see nr 12 in the image above). An Excel file is downloaded that has the following sheets:
If allocation is activated, a file with available slots (kit numbers) should be uploaded for each scope (study, country or site), before the first subject can be randomized.
A template allocation list customized for your randomization configuration can be downloaded by clicking Download template in the Allocation List field (see nr 15 in the image above). For the example shown in the image above, the template allocation list looks as follows:
The list shows the factors and outcomes. The Item IDs are displayed as column names, their code lists are dispayed in the rows below. Every possible combination for the factors and outcomes is shown here. The item RANDKITNO (kit numbers) was configured to be an open text field, so the allocation list says <string>
. A list of kit numbers has to be added to the file, before the template can be uploaded as allocation list, as in the example below:
Once the randomization is started, it is possible to view the allocation list by clicking the view button in the Allocation List field (see nr 16 in the image above). An Excel file is downloaded that has the following sheets:
Note! The randomization can only be configured by users that are assigned the system role Unblinded Statistician.
To configure the randomization, follow the steps below.
1 |
In Viedoc Admin, go to the study for which you would like to configure the randomization. In the RTSM field, click the toolbox icon to open the randomization window. |
2 |
Click Open to select the randomization you would like to configure. The Randomization configuration window opens as a pop up. This window also displays the prognostic factors and outcomes that have been defined in Viedoc Designer. |
3 |
In the Randomization List field, select:
Note! To be able to perform a dynamic randomization, you need to specify only one outcome for the randomization list, and you need to make sure that the items used as factors and outcome have a code list. It is not possible to use free text items in the randomization list for dynamic randomization. Note! You can also select Country or Study Site as factors. Yet, if you have set the scope to Country or Study site, you cannot use Country or Site respectively as input factor(s). |
4 |
If you want to use allocation, select the Allocation list checkbox, select the scope of the allocation list, and, only if advanced allocation is not enabled in Viedoc Designer, the input factors, and the desired outcome (for example, kit number). Based on the allocated treatment, a kit number will then be assigned to the subject. From the Randomization method dropdown list, select Dynamic (Pocock and Simon). |
5 |
Select Create configuration to configure the dynamic randomization: Note! You will need to create the dynamic randomization configuration individually for demo mode and production mode after creating the dynamic randomization settings. |
6 |
Configure the dynamic randomization (see also Concepts and terminology for dynamic randomization):
The randomization page reloads and shows the randomization list with status Inactive, and the Allocation lists that are to be uploaded (status Not initiated). |
When the maximum number of slots is reached during randomization, no additional subjects can be randomized. You can edit the maximum number of slots in the randomization configuration at any time, see Editing the configuration of a dynamic randomization.
There are two different options for the allocation lists, as follows:
This is set up under the RTSM settings in Viedoc Admin, as illustrated in the image below:
If individual allocation list(s) are used for each randomization, the allocation list will be uploaded separately for each defined randomization, as described below.
To upload an allocation list, follow the steps below.
1 | Click Upload. |
2 | Select the file containing the slot list and click Open. The file will be uploaded. |
The allocation list can be viewed in a similar way as the randomization list, see Viewing the randomization list.
To edit an active allocation list, follow the steps below.
1 | Click the toolbox icon next to the allocation list you would like to edit. |
2 | Select: Add to list or Upload new list.
|
3 |
Select the file containing the slot list and click Open. |
The randomization list initially indicates status Not initiated and turns to status Active once the first subject has been randomized.
From that moment, the distribution list can be downloaded in Excel format by clicking View.
If you would like to restart a dynamic randomization, click the toolbox icon in the Randomization List field and select Restart.
Restarting the randomization will reset the slot list. Newly added subjects will be randomized independently of the subjects that were randomized before the restart.
If you would like to edit the configuration of an ongoing Pocock and Simon dynamic randomization, click Edit configuration.
A pop-up opens where you can edit the settings for variation method, probability, factor weights, allocation ratio and maximum number of slots per list. For a more detailed explanation, see step 6 in Configuring a dynamic randomization.
You can edit the randomization configuration at any time during randomization.