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 |
|