"Steven_Lord" <firstname.lastname@example.org> wrote in message <email@example.com>... > > > "Ingrid " <firstname.lastname@example.org> wrote in message > news:email@example.com... > > Hello, > > > > I have been using "glmfit" to perform binomial regression and I need to be > > able to get some extra diagnostics out of this namely > > > > the leverage values, > > and / or Cook's distance. > > > > I see such outputs are available when using GeneralizedLinearModel.fit, I > > tried to apply this as a complement to glmfit but I get the following > > error: > > > > mdl=GeneralizedLinearModel.fit(XX,[Y > > nTotal],'Distribution',binomial,'Link',logit) > > You're missing single quotes around binomial and logit. > > -- > Steve Lord > firstname.lastname@example.org > To contact Technical Support use the Contact Us link on > http://www.mathworks.com
actually I realized I get this problem only when I use this expression in a loop,
for i=1:n mdl(i)=GeneralizedLinearModel.fit(XX,[Y(:,i) nTotal],'Distribution','binomial','Link','logit') end
if I calculate mdl one by one its fine. Maybe its due to mdl(i)?