TB regression helper functions