Learn R Programming

eiPack (version 0.1-7)

tuneMD: Generate tuning parameters for MD model

Description

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.

Usage

tuneMD(formula, covariate = NULL, data, ntunes = 10, totaldraws = 10000, ...)

Arguments

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

Value

A list containing matrices of tuning parameters.

See Also

ei.MD.bayes