dosresmeta.control | R Documentation |
This internal function sets the parameter options used for fitting dose-response meta-analytical models,
commonly to pre-specified default values. It is usually internally called by dosresmeta.fit
.
The function has many more arguments than needed for dosresmeta. For more details see mixmeta.control
.
dosresmeta.control(
optim = list(),
showiter = FALSE,
maxiter = 100,
initPsi = NULL,
Psifix = NULL,
Scor = NULL,
addSlist = NULL,
inputna = FALSE,
inputvar = 10^4,
loglik.iter = "hybrid",
igls.inititer = 10,
gr = FALSE,
hessian = FALSE,
vc.adj = TRUE,
reltol = sqrt(.Machine$double.eps),
checkPD = NULL,
set.negeigen = sqrt(.Machine$double.eps)
)
optim |
list of parameters passed to the control argument of the function optim, which performs the quasi-Newton optimization in likelihood-based
random-effects models. See |
showiter |
logical. If |
maxiter |
positive interger value. Maximum number of iterations in methods involving optimization procedures. |
initPsi |
either a matrix or a vector of its lower triangular elements (with diagonal, taken by column) from which starting
values of the parameters of the between-study (co)variance matrix are derived, used in the optimization procedure for likelihood-based random-effects models.
If |
Psifix |
either a matrix or a vector of its lower triangular elements (with diagonal, taken by column), or optionally a named list with one or more of such objects. Used to define fixed parts of the random-effects |
Scor |
either a scalar, vector or matrix representing the within-unit correlation(s) to be inputted when the covariances are not provided in multivariate models, and ignored if they are. |
addSlist |
a list of m matrices for the (outer-level) groups of units defining the (known) error (co)variance structure, when this cannot be passed through the argument S of mixmeta. |
inputna |
logical. If missing values must be internally inputted. To be used with caution. |
inputvar |
multiplier for inputting the missing variances, to be passed as an argument to inputna. |
loglik.iter |
iterative scheme used in in likelihood-based optimization routines. Options are "hybrid", "newton", and "igls" or "RIGLS". |
igls.inititer |
number of iteration of the iterative generalized least square algorithm to be run in the hybrid optimization procedure of linkelihood-based models to provide the starting value. |
gr |
indicates if the gradient of the (re)ml likelihood should be provided. FALSE by default. |
hessian |
logical. If TRUE, the Hessian matrix of the parameters estimated in the optimization process is computed and returned. Only applicable to likelihood-based estimation methods. |
vc.adj |
logical. If TRUE, an adjustement to the way the marginal variance part is computed in the (co)variance components estimator is applied in the variance components estimator. |
reltol |
relative convergence tolerance in methods involving optimization procedures. The algorithm stops if it is unable to
reduce the value by a factor of |
checkPD |
logical. Determines if the semi-positiveness of within-unit error or random-effects (co)variance matrices must be checked. |
set.negeigen |
positive value. Value to which negative eigenvalues are to be set in estimators where such method is used to force semi-positive definiteness of the estimated between-study (co)variance matrix. |
A list with components named as the arguments.
Alessio Crippa, alessio.crippa@ki.se
Gasparrini, A., Armstrong, B., Kenward, M. G. (2012). Multivariate meta-analysis for non-linear and other multi-parameter associations. Statistics in Medicine, 31(29), 3821-3839.
dosresmeta
, dosresmeta-package
, dosresmeta.control
## Loading data
data("alcohol_cvd")
## print the iterations (see ?optim) and change the default for starting values
dosresmeta(formula = logrr ~ dose, type = type, id = id, se = se,
cases = cases, n = n, data = alcohol_cvd, proc = "1stage",
control = list(showiter = TRUE, igls.inititer = 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.