Gist e5affea97473980182b59a9d4efb945e
✓ Published0🌍 Public
Aakeshavan
Last edited May 3, 2016
Created on May 3, 2016
This example visualizes the relationship between brain connectivity measures and disability in multiple sclerosis patients. It fits ordinary least squares regression models predicting the EDSS score from diffusion imaging metrics and demographic covariates across each brain connection, then displays the resulting p-values and R-squared values in a table. The code uses pandas for data handling, statsmodels' `ols` API for the regression models, and seaborn with pylab inline for plotting.
AI-generated description