Hierarchical disease dynamics model