Description Usage Arguments Details Value Note Author(s) See Also
View source: R/31-hzarFittingNew.R
This method is meant to generate an arbitrary hzar.fitRequest object
to pass to hzar.doFit
. Note that this method does not
check its arguments for validity. Use
hzar.first.fitRequest.old.ML
or
hzar.next.fitRequest
for a more convenient method for
generating hzar.fitRequest objects.
1 2 3 4 5 6 7 | hzar.make.fitRequest(modelParameters,
covMatrix,
clineLLfunc,
mcmcParameters,
mcmcRaw = NULL,
fit.run = FALSE,
fit.success = FALSE)
|
modelParameters |
A named list of at least length 2. See details for format. |
covMatrix |
A covariance matrix for the gaussian proposal distribution as
described in |
clineLLfunc |
A function of theta that returns a log likelihood. It is best to
use the results of
|
mcmcParameters |
The parameters controling the operation of the mcmc process. Use
the results from |
mcmcRaw |
The mcmc object created by a successful run of
|
fit.run |
Has this particular request been run? Note that this does not update
automatically; the result of |
fit.success |
Has this particular request been run successfully? Note that this
does not update automatically; the result of
|
For modelParameters, the list must have the following entries:
$initA named list with the initial values of the free
parameters. Used as theta.init in MCMCmetrop1R
.
$tuneA named list with the tuning values of the free
parameters. Used as tune in MCMCmetrop1R
.
A hzar.fitRequest object. A list with values:
$modelParam |
modelParameters from above. |
$cM |
covMatrix from above. |
$llFunc |
clineLLfunc from above. |
$mcmcParam |
mcmcParameters from above. |
$mcmcRaw |
mcmcRaw from above. |
and with attributes:
"fit.run" |
fit.run from above. |
"fit.success" |
fit.success from above. |
Although modelParameters only needs to contain $init and $tune, modelParam will sometimes contain $fixed, $lower and $upper. These are artifacts of hzar.make.clineLLfunc.old.ML and can be safely ignored.
Graham Derryberry asterion@alum.mit.edu
hzar.first.fitRequest.old.ML
hzar.next.fitRequest
hzar.cov.mcmc
hzar.cov.rect
hzar.make.clineLLfunc.old.ML
hzar.make.clineLLfunc.old.bayes
hzar.make.LLfunc.null
hzar.make.mcmcParam
MCMCmetrop1R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.