# Example 1: Optimal Treatment
# All the time (4) for all questions
mtoq_4_score(4, 4, 4, 4)
# Example 2: Poor Optimization
# Rarely (1) for efficacy, sometimes (2) for others
mtoq_4_score(1, 1, 2, 2)
Run the code above in your browser using DataLab