I recommend to you read my book: Applied Biomechatronics Using Mathematical Models (more info in link: www.garzaulloa.org). On Chapter 5 Methods to develop mathematical models: traditional statistical analysis: On section 5.17 There is a complete example using MATLAB of SPECIAL APPLICATION OF MATHEMATICAL MODELS FOR ANALYSIS OF CONTINUOUS GLUCOSE MONITOR FOR DIABETIC SUBJECTS. The free dataset can be downloaded in the link: https://data.mendeley.com/datasets/6nw9crk4j9/1