For detailed explanation cfr. Matlab documentation for function ‘fitlm’. We considered the following dependent variables. SPECW: specificity of reconstruction (VAFPOST−VAFTD) relative to the weight optimization method, (% VAF). GOODW: goodness of reconstruction (VAFPRE−VAFPOST) relative to the weight optimization method, (% VAF). SPECH: specificity of reconstruction relative to the activation optimization method, (% VAF). GOODH: goodness of reconstruction relative to the activation optimization method, (% VAF). dW: change in muscle synergies vectors of weights after the treatment, (correlation coefficient between pre- and post-treatment synergy weights). dH: change in muscle synergies activation profiles after the treatment, (RMSE between pre- and post-treatment synergy activations). GPSdiff: change in Gait Profile Score after the treatment, (degrees). The independent variables are the following. tr: Treatment administered to the patient, (BOTOX/SEMLS). dT: time between pre- and post-treatment gait analysis, (days). Age: age of the patient at the time of surgery, (years). IMPW: impairment of the patient measured in the pre-treatment condition. (VAFPRE−VAFTD) relative to the weight optimization method, (% VAF). IMPH: impairment of the patient measured in the pre-treatment condition relative to the activation optimization method, (% VAF). SPA: spasticity score measured in the pre-treatment clinical examination. STR: strength score measured in the pre-treatment clinical examination. SEL: selectivity score measured in the pre-treatment clinical examination. GPSpre: Gait Profile Score computed in the pre-treatment gait analysis, (degrees). BOTOX1-5: botulinum injection site. 1-rectus femoris, 2-biceps femoris, 3-medial hamstrings, 4-gastrocnemius, 5-soleus, (yes/no).