mcFMM(EDdata, ncomp = 1, addsigma = 0, iflog = TRUE,
nsim = 50000, inis = list(), control.args = list())1 means a central age model)inis=list(p1=1,p2=1,mu1=5,mu2=10) in FMM2"mcAgeModels" including following elements, which can be operated with function reportSAM:control.args) are used to control the performance of the sampling process:
w: the size of the steps for creating an interval from which to sample, default w=1
m: the limit on steps for expanding an interval, the interval is expanded to include more feasible values if possible. m<=1< code=""> means no limit on the expandation, m>1 means that the interval is expanded with a finite number of iterations. Default m=-100
nstart: the allowed maximum number of trials for updating a variable in each iteration. It can be used to monitor the stability of the chains of a model. For example, the chain of MAM4 is very likely to crash down and sometimes more number of attempts (nstart>1) is needed to complete the simulation. Default nstart=1=1<>Neal RM, 2003. "Slice sampling" (with discussion). Annals of Statistics, 31: 705-767. Software is available at
data(EDdata)
# Construct MCMC chains for a 3-component FMM.
obj<-mcFMM(EDdata$gl11,ncomp=3,nsim=5000)
reportSAM(obj,thin=2,burn=1e3)Run the code above in your browser using DataLab