def within_subject_correlation(_df, _feature, _method):
    """Group by subject, get correlation with response, mean over subjects."""
    return _df.groupby('subjectNo')[_feature].corr(
        _df['response'], method=_method
    ).mean()