mcFMM(EDdata, ncomp = 1, addsigma = 0, iflog = TRUE,
nsim = 50000, inis = list(), control.args = list())1 denotes a central age model)inis=list(p1=1,p2=1,mu1=5,mu2=10) in FMM2 (the sum of p1 and p2 will be normalized to 1)"mcAgeModels" including the following elements:control.args) are used for controling the sampling process:
(1) w: size of the steps for creating an interval from which to sample, default w=1;
(2) m: limit on steps for expanding an interval, m<=1< code=""> means no limit on the expandation, m>1 means the interval is expanded with a finite number of iterations, default m=-100;
(3) nstart: maximum number of trials for updating a variable in an iteration. It can be used for monitoring the stability of the simulation. For example, a MAM4 is likely to crash down for data sets with small numbers of data points or less dispersed distributions (see section 8.3 of Galbraith and Roberts, 2012 for a discussion), and sometimes more than one trial (i.e., using nstart>1) is required to complete the sampling process, default nstart=1.=1<>Neal RM, 2003. "Slice sampling" (with discussion). Annals of Statistics, 31(3): 705-767. Software is freely available at
data(EDdata)
# Construct a MCMC chain for FMM3.
obj<-mcFMM(EDdata$gl11,ncomp=3,nsim=5000)
reportSAM(obj,thin=2,burn=1e3)Run the code above in your browser using DataLab