tuneMD {eiPack} | R Documentation |
An adaptive algorithm to generate tuning parameters for the MCMC
algorithm implemented in ei.MD.bayes
. Since we are
drawing each parameter one at a time, target acceptance rates are between 0.4 to 0.6.
tuneMD(formula, covariate = NULL, data, ntunes = 10, totaldraws = 10000, ...)
formula |
A formula of the form cbind(col1, col2, ...) ~ cbind(row1, row2, ...) with rows as the predictor and columns
as the response |
covariate |
An R formula for the optional covariate in the form
~ x |
data |
data frame containing the variables specified in formula and
covariate |
ntunes |
number of times to iterate the tuning algorithm |
totaldraws |
number of iterations for each tuning run |
... |
additional arguments passed to ei.MD.bayes |
A list containing matrices of tuning parameters.
Olivia Lau <olau@fas.harvard.edu>