The function to calculates the total imbalance measured by minimization algorithms
totimbal(trt = trt, covmat = covmat, covwt = covwt, ratio = ratio,
ntrt = ntrt, trtseq = trtseq, method = "Range")
treatment sequence for all the randomized subjects
matrix or data frame of covariate factors
vector of weights of the covaraite factors
vector of randomization ratios for each treatment
numeric number of treatment groups
vector of a sequence of treatment groups
the method or algorithm for the minimization randomization
total imbalance