In each study , a subset of patients was given mixed-meal tolerance tests at baseline and study endpoint , and model-based beta cell function parameters were calculated from plasma glucose and C-peptide .