Is there any way to specify these parameters globally or does one have to use control=xxx where xxx is defined using glm.control in each invocation of glm? Paul M. Jacobson Jacobson Consulting Inc. 80 Front Street East, Suite 720 Toronto, ON, M5E 1T4 Voice: +1(416)868-1141 Farm: +1(519)463-6061/6224 Fax: +1(416)868-1131 E-mail: pmj at jciconsult.com Web: http://www.jciconsult.com/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
glm.control
3 messages · Paul M. Jacobson, Thomas Lumley, Brian Ripley
On Thu, 1 Aug 2002, Paul M. Jacobson wrote:
Is there any way to specify these parameters globally or does one have to use control=xxx where xxx is defined using glm.control in each invocation of glm?
You could redefine the default values in glm.control, eg to use 10^-7 in
the convergence test
glm.control<-function (epsilon = 1e-07, maxit = 10, trace = FALSE)
{
if (!is.numeric(epsilon) || epsilon <= 0)
stop("value of epsilon must be > 0")
if (!is.numeric(maxit) || maxit <= 0)
stop("maximum number of iterations must be > 0")
list(epsilon = epsilon, maxit = maxit, trace = trace)
}
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 1 Aug 2002, Thomas Lumley wrote:
On Thu, 1 Aug 2002, Paul M. Jacobson wrote:
Is there any way to specify these parameters globally or does one have to use control=xxx where xxx is defined using glm.control in each invocation of glm?
You could redefine the default values in glm.control, eg to use 10^-7 in
the convergence test
glm.control<-function (epsilon = 1e-07, maxit = 10, trace = FALSE)
{
if (!is.numeric(epsilon) || epsilon <= 0)
stop("value of epsilon must be > 0")
if (!is.numeric(maxit) || maxit <= 0)
stop("maximum number of iterations must be > 0")
list(epsilon = epsilon, maxit = maxit, trace = trace)
}
A warning shot: that will not work in R-devel (and hence probably not in 1.6.0)
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._