Concatenate generalized linear model objects
显示 更早的评论
Hello everybody, I use fitglm to fit several generalized linear models, for instance:
fit1 = fitglm(X,Y,'linear','distr','gamma','link','log');
fit2 = fitglm(X,Y,'linear','distr','gaussian','link','log');
fit3 = fitglm(X,Y,'linear','distr','gamma','link','identity');
...
I would like to create an "array" of these objects, so that I could write something like this to access them:
fit(1), fit(2),...
but I couldn't find a way! Can you please help me out? Thanks!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!