[R] Stochastic Gradient Ascent for logistic regression

2009-04-26 Thread Tim LIU
Hi. guys, I am trying to write my own Stochastic Gradient Ascent for logistic regression in R. But it seems that I am having convergence problem. Am I doing anything wrong, or just the data is off? Here is my code in R - lbw - read.table(http://www.biostat.jhsph.edu/~ririzarr/Teaching

Re: [R] Stochastic Gradient Ascent for logistic regression

2009-04-26 Thread Ravi Varadhan
Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: Tim LIU timothy.sli...@gmail.com Date: Sunday, April 26, 2009 7:41 am Subject: [R] Stochastic Gradient Ascent for logistic regression To: r-help@r-project.org Hi. guys, I am trying to write my own