Hi
I am trying to calculate the deviance for a model for a binomial response. I
have a factor F of 2 levels (i = 1, 2) and a covariate X. The formula for
the deviance is shown below and I can see how this works for models that
don¡¯t contain a covariate and I can calculate the deviance OK but I cannot
see how this formula can build in X.
2 * Sum (yi Log (yi/(ni ¡Çi)) + (ni ¨C yi) log ((ni ¨C yi)/(ni - ni ¡Çi)))
Am I missing something or does the formula change with the introduction of a
covariate?
Thanks
Rebecca
====================================================
This email is confidential and intended solely for the use of the
individual or organisation to whom it is addressed. Any opinions or
advice presented are solely those of the author and do not necessarily
represent those of the Millward Brown Group of Companies. If you are
not the intended recipient of this email, you should not copy, modify,
distribute or take any action in reliance on it. If you have received
this email in error please notify the sender and delete this email
from your system. Although this email has been checked for viruses
and other defects, no responsibility can be accepted for any loss or
damage arising from its receipt or use.
====================================================
|