필터 지우기
필터 지우기

How to perform regression analysis with random effects that cluster on the subject level?

조회 수: 1 (최근 30일)
I would very much appreciate some help on the following:
I would like to perform a regression analysis on a dichotomous dependent variable Y using the variables A (Scale), B (Scale), and C (Categorical) as predictors. Furthermore, I would like to adjust for clustering on the subject level (ID). How can I perform such a regression analysis?
I was able to perform the regression without the subject clustering:
ds = dataset(A, B, C, Y, 'Varnames', {'A','B','C','Y'});
modelspec = 'Y ~ A + B + C';
mdl = fitglm(ds, modelspec, 'Categorical', [3], 'Distribution', 'binomial', 'Link', 'logit');
But how can I extend the model for the adjustment for the clustering on the subject level? Thanks in advance!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by