Logistic mixed-effect regression example
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I was trying to make sense out of NLMEFIT help in order to fit logistic mixed-effect regression and I could not. In R syntax is straight forward. How would I do it in MATLAB? Thank you, Michael
0 commentaires
Réponses (5)
Peng Li
le 7 Août 2020
You could use fitglme now to fit mixed effect logistic regression models. You can specify the distribution as Binomial and this way the Link function will be made as logit as well. Then you will be fitting a mixed effect logistic regression model (of course you need to specify random effects correctly in the formula).
0 commentaires
Tom Lane
le 21 Fév 2012
In that case nlmefit would not be suitable, because it fits models with a continuous response. The glmfit function would be suitable, but it doesn't support mixed effects so you could only use that if you were willing to treat your predictors as having fixed effects. Unfortunately there's no Statistics Toolbox function that performs mixed effects logistic regression.
2 commentaires
Tom Lane
le 18 Oct 2012
I can't think of a good way to do what you want. The anovan function isn't suitable for binary or multivariate responses. The glmfit function and other functions aren't set up for random effects.
You can of course use glmfit with dummy variables for the subjects, treating them as fixed effects. In the latest release you can use GeneralizedLinearModel.fit with categorical predictors, and not have to create dummy variables yourself. But neither of these supports random effects. Nor do they deal with multivariate responses.
Tom Lane
le 15 Fév 2012
You could use NLMEFIT to fit a response with normally distributed errors around a curve with a logistic shape. But there is no function in the Statistics Toolbox for fitting a mixed-effect model to a logistic regression to model the probability for a binomial response variable.
0 commentaires
Voir également
Catégories
En savoir plus sur Multivariate Models dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!