MinimPy Tabs

## Settings

In this tab there are various initialization settings of a trial. For a new trial following setting can be configured:
1) Trial Title: Enter trial title in this text box. In the case of network trial, the first few word must not contain invalid characters(those that can not come in file names (\\/:* ?"<>| for windows).

2) Sample Size: Select the trial sample size here. Use up and down arrows to increase or decrease the value.

3) Network Sync: If this is a network trial (that is, a multi-center trial), select this option. A small dialog will be displayed, prompting for the url of the trial repository. To know more about trial repositories and how to have one, see the section on "Trial repositories"

4) Trial Description: Enter some informative texs describing your clinical trial.

5) Probability Method: The method used for calculating the assignment probabilities. There are two choices. Biased coin minimization which include the effect of allocation ratios into the computation, and naive method which do not include the effect of allocation ratios in the computation. These options only is meaningfull when we have unequal allocation ratios. Regardless of this selection, the effect of allocation ratios will be included in the computation of imbalance score. If you selected the bised coin minimization, you have to select the base probability, that is the probabilty of assignement for the group with lowest allocation ratio. The default value is 0.7, and it can be varied from 0.10 to 1.0.

6) Distance Measure: In this section you have to select the distanc measure used to calculate the imbalance score. There are four options here. Marginal balance computes the cummulative difference between every possible pairs of level counts. This is the default method and the one which is recommended. Rage calculates the difference between the maximum and the mimimum value in level counts. Standard deviation calculates the standard deviation of level counts and variance calculate the variance. All of these measures uses adjusted level counts. Adjustment performs relative to the values of allocation ratios.

7) Trial Properties: Miscelaneous trial properties such as co-ordinator, moderator, investigator, data analyser, etc. Each property must have a name and value (description). To add a property click the add button, then edit the added property. The added property has the name "Property Name" and the value "Property Value". The name and value should be edited to something meaningfull to make it usable. To delete a property select it and click the delete button. To edit a property name or value, select the row by one click and then click the name or value again. The you can edit the name or value. There is a 'Date' button which insert a row into the properties table consisting of the enrolled date. After finishing the edit, press Enter key to fix the name of value.

## Groups

You have to define the trial groups. For each group a name and an allocation ratio are needed. Click add to add a new group. A default group with the name "Group n" with n starting from 1, and and allocation ratio of 1 is added. You can edit the group name to some meaningfull names and the allocation ratio to your desired value. To edit click on the group name or allocation ratio, then enter the new value. You can use up and down arrow keys of mouse to set the allocation ration. Allocation ratio must be entered as an integer value. After finishing the edit, hit enter key to fix the edited value. Allocation ratios are integer numeric values. Click delete to delete the selected group.

## Variables

Variables or prognostic factors, are the subject factors which are selected to minimize subject based on them. To add a new variable select the Variables tab and click the add button. Alternatively you can press Control + V to add a new variable. A variable will be added to the list and a dialog will appear for editing different aspects of this new variables as follows:
1) Variable Name: Enter a unique label for this variable. The label must not be used for more than one variable.

2) Variable Weight: Enter a flout number indication the relative importance of this variable for minimization. You may choose a value of zero if the variable should not include in the minimization. This is used when you want some extra-variables only to supply additional information.

3) Variable Levels: Each variable must have at least two levels to be usefull for entering minimization. Click the add button to add a new level. A level with a default name of "Level n" with n ranging from 0 onward will be added to the list. To change the name of he level, click on the level to select it, then click for another time to start editing. Please note that this is not a double click action, although it also may be used. Label names must be unique for each variable. After finishing the edit of the lable, press enter key to fix the value. To delete a lable select it and then click the Delete button.

Clicking the Reset button will set all aspect of the variable to the original values. After all aspects of the variable has been set, click the Save button to save the new variable and add it to the list of variables. Click Cancel button to cancel editing the new variable. Please note that this will not lead to deletion of the variable. It only cancel all edit of the new variable. If you want to delete any variable, select it from the variable list and hit the Delete button. To edit a variable from the list, double click it in the list. This way the edit variable will appear again and you can set different aspects of the variable and save it.