Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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!

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by