s-news
[Top] [All Lists]

Deviance in a glm(family=poisson)

To: <s-news@wubios.wustl.edu>
Subject: Deviance in a glm(family=poisson)
From: "Kypreos Theodore" <vamos@x-treme.gr>
Date: Tue, 26 Jun 2001 11:45:04 +0300
Organization: OPA
Reply-to: "Kypreos Theodore" <vamos@x-treme.gr>
Hello all,
 
I want to ask something about the deviance in a glm(family=poisson)
As we know, when we want to compute the Deviance, we have to compute something like that:
 
Dos = 2*Sum{y(i)*log(y(i)/mu(i) - (y(i)-mu(i))}
 
What happens when in the response variable (y), is there a value equal to zero y=0 ) ( this is possible as y="counts"). log(zero)=- inf. So, what should be done, to compute the Deviance and how S-plus computes it?
 
Many thanks in advance,
 
Thodoris
 
Theodore Kypreos, Undergraduate Student
Department of Statistics in Athens University of Economics and Business

Homepage: http://dias.aueb.gr/~s6980070/index.html or www.angelfire.com/ne/vamos
Mail Address:
55 Valtinon St.
Gizi 11474
Athens
Greece
Tel : 0030-1-6426743
 
 
 
 
<Prev in Thread] Current Thread [Next in Thread>