hzar.doFit: Run the optimizer.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/31-hzarFittingNew.R

Description

Run the optimizer using the parameters listed in the hzar.fitRequest given.

Usage

1
hzar.doFit(fitRequest)

Arguments

fitRequest

The hzar.fitRequest object to be processed

Value

An updated hzar.fitRequest object.

Author(s)

Graham Derryberry [email protected]

See Also

hzar.fitRequest MCMCmetrop1R

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(manakinMolecular);
mknAdaA <-
  hzar.doMolecularData1DPops(manakinMolecular$distance,
                             manakinMolecular$ada.A,
                             manakinMolecular$ada.nSamples);
mknAdaAmodel <-
  hzar.makeCline1DFreq(mknAdaA, scaling="fixed",tails="none");
mknAdaAmodel <-
  hzar.model.addBoxReq(mknAdaAmodel, -30, 600)
mknAdaAmodelFit <-
   hzar.first.fitRequest.old.ML(model=mknAdaAmodel,
                                mknAdaA,
                                verbose=FALSE);
mknAdaAmodelFit$mcmcParam$chainLength <- 5e3;
mknAdaAmodelFit$mcmcParam$burnin <- 1e2;
str(hzar.doFit(mknAdaAmodelFit));

hzar documentation built on May 29, 2017, 8:45 p.m.