ctqr.control {ctqr}R Documentation

Auxiliary Function for Root Search

Description

This functions can be used within a call to ctqr, to control the operational parameters of the root search algorithm.

Usage

ctqr.control(tol = 1e-06, maxit = 1000, a = 0.5, b = 1.25)

Arguments

tol

positive convergence tolerance: the algorithm stops when the maximum absolute change between two consecutive estimates is smaller than tol.

maxit

maximum number of iterations.

a, b

numeric scalar with 0 < a < 1 and b > 1. See ‘Details’.

Details

For a current estimate beta, a new estimate is computed as beta_new = beta + delta*s(beta), where s(beta) is the current value of the estimating equation and delta is a positive multiplier. If sum(s(beta_new)^2) < sum(s(beta)^2), the iteration is accepted and delta is multiplied by b. Otherwise, beta_new is rejected and delta is multiplied by a. By default, a = 0.5 and b = 1.25. Choosing a,b closer to 1 may result in a more accurate estimate, but will require a larger number of iterations.

Value

The function returns its arguments. If some was not correctly specified, it is set to its default and a warning message is returned.

See Also

ctqr


[Package ctqr version 2.1 Index]