model_compute_terms_contributions function

Compute a matrix of terms contributions