Skip to content

glm with Newton Raphson

4 messages · Roger D. Peng, Brian Ripley, Valeska Andreozzi +1 more

#
There are some examples of how to approach this in Modern Applied 
Statistics with S, 4th ed. (chap. 16) by Venebles & Ripley.  It's not 
Newton-Raphson but I think the code can be adapted.

-roger
Valeska Andreozzi wrote:

  
    
#
For canonical links they are the same thing (and the likelihood is 
log-concave), but in general NR is a poor optimizer without at least 
step-length adjustment.

MASS4 p.445 has an example of using a general optimizer for logistic 
regression.
On Fri, 19 Nov 2004, Valeska Andreozzi wrote:

            

  
    
#
Hi,

Does anyone know if there is a function to find the maximum likelihood 
estimates of glm using Newton Raphson metodology instead of using IWLS.

Thanks
Valeska Andreozzi

--------------------------------------------------------
Department of Epidemiology and Quantitative Methods
FIOCRUZ - National School of Public Health
Tel: (55) 21 2598 2872
Rio de Janeiro - Brazil
#
Dear Roger and Valeska,

I have example that uses Newton-Raphson for logistic regression in my R and
S-PLUS Companion that might be of help. It's in the chapter script at
<http://socserv.socsci.mcmaster.ca/jfox/Books/Companion/Ch8-script.txt> (the
function lreg). See also the notes at
<http://socserv.socsci.mcmaster.ca/jfox/Courses/S-course/Topic-4.pdf>.

I hope this helps,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------