Description Usage Arguments Value Author(s) See Also Examples
View source: R/60-hzarPlottingNew.R
This function returns the mcmc data with an added a log likelihood column.
1 2 3 4 5 6 7 8 9 10 11 12 | hzar.mcmc.bindLL(fitRequest,
dataGroup = hzar.fit2DataGroup(fitRequest),
mcmcData =
if(inherits(fitRequest,"hzar.fitRequest")){
mcmc(fitRequest$mcmcRaw,
thin=fitRequest$mcmcParam$thin,
start=1+fitRequest$mcmcParam$burnin);
}else{
as.mcmc(dataGroup$data.mcmc)},
llData = dataGroup$data.LL,
t0 = start(mcmcData),
tF = thin(mcmcData))
|
fitRequest |
The |
dataGroup |
The |
mcmcData |
The |
llData |
The series of log likelihoods of the parameter values. |
t0 |
The |
tF |
The |
A mcmc
object, with columns for each free parameter and
the log likelihood of each row.
Graham Derryberry asterion@alum.mit.edu
hzar.fitRequest
hzar.dataGroup
mcmc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(manakinMolecular);
mknAdaA <-
hzar.doMolecularData1DPops(manakinMolecular$distance,
manakinMolecular$ada.A,
manakinMolecular$ada.nSamples);
mknAdaAmodel <-
hzar.makeCline1DFreq(mknAdaA, scaling="fixed",tails="none");
mknAdaAmodelFit <-
hzar.first.fitRequest.old.ML(model=mknAdaAmodel ,
mknAdaA,
verbose=FALSE);
mknAdaAmodelFit$mcmcParam$chainLength <- 5e3;
mknAdaAmodelFit$mcmcParam$burnin <- 5e2;
plot(hzar.mcmc.bindLL(hzar.doFit(mknAdaAmodelFit)));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.