what's wrong with the deviance in glmfit

  • Follow


Hi
I am trying to do a logistic regression and I use in two different ways

1. summarized data
x = [0 0;0 1;1 0;1 1];
n = [2;2;2;2];
t = [0;0;0;1];
[b d] = glmfit(x, [t n],'binomial','link','logit')
yfit = glmval(b,x,'logit')'

2. full data
x = [0 0;0 0;0 1;0 1;1 0;1 0;1 1;1 1];
t = [0;0;0;0;0;0;0;1];
[b d] = glmfit(x, t,'binomial','link','logit')
yfit = glmval(b,x,'logit')'

i dont understand why the deviance are difference?

Sincerely,
Yu
0
Reply Waranyu 11/15/2010 7:30:15 AM


0 Replies
175 Views

(page loaded in 0.02 seconds)


Reply: