Comparison theorems for conjoined bases of linear Hamiltonian differential systems and the comparative index