Set Control Parameters for Generalized Estimation Equation Models

DESCRIPTION:

Allows users to set parameters for gee.

USAGE:

geeControl(algorithm=2, reg.tol=0.0001,
           cor.tol=0.0001, maxit=30, trace=F, sorted=F)

OPTIONAL ARGUMENTS:

algorithm
an integer or a character string to specify one of three GEE algorithms:

"GEE2"
Use the paired estimating equations for regression and correlation parameters.
Enter 2 for this option.
"GEE1"
Use an estimating equation for regression parameters and moment methods for covariance parameters.
Enter 1 for this option.
"GEE0"
Fix the covariance parameters at their initial estimates during iterations, then use moment methods to estimate the final correlation and scale parameters after convergence of the regression parameters.
The number 0 can also be entered for this option.

The default is 2 for "GEE2".
reg.tol
threshold for the relative convergence of regression parameters.
cor.tol
threshold for the relative convergence of correlation parameters.
maxit
maximum number of iterations. The default is 30.
trace
a logical value indicating whether or not iteration details should be printed. The default is not to print tracing information.
sorted
a logical value indicating whether or not the data has been sorted according to the cluster id and and record id as specified in cluster argument in the call to gee/geeDesign. The data will be sorted accordingly if sorted=F, which is the default.

VALUE:

a list of control arguments to be used in a call to gee or geeDesign.
A call to geeControl can be used directly in the control argument of a call to gee/geeDesign .

SEE ALSO:

, ,

EXAMPLES:

Seizure.Subject <- recordDesign(cluster = "Subject", data = Seizure)

gc <- geeControl(algorithm=1, reg.tol=0.00001, cor.tol=0.00001, maxit=100)

gee(y~Time+group, variance="glm.scale", family=poisson,
    cluster=cbind(clusterID,recordID), data=Seizure.Subject, control=gc)

gee(y~Time+group, variance="glm.scale", family=poisson,
    cluster=cbind(clusterID,recordID), data=Seizure.Subject,
    control=geeControl(maxit=50, trace=T))