marginal trees and transition/joint matrix indices