JAGS run
to produce an MCMC sample for statistical inference. Returns an object
of S3 class runJagsWrapperrunSegratioMM(seg.ratios, model, priors = setPriors(model),
inits = setInits(model, priors), jags.control =
setControl(model, stem, burn.in = burn.in, sample = sample, thin = thin),
burn.in = 2000, sample = 5000, thin = 1, stem = "test", fix.one = TRUE,
print = TRUE, plots = TRUE, print.diagnostics = TRUE,
plot.diagnostics = TRUE, run.diagnostics.later=FALSE )segRatio
contains the
segregation ratios for dominant markers and other information
such as the number of dominant markers per individualmodelSegratioMM specifying model
parameters, ploidy etcpriorsSegratioMM indicating
priors that are setInitsjagsControl containing MCMC
burn in, sample and thinning as well as relavant files for BUGS
commands, inits and dataJAGS .cmd file nameTRUE)runJagsWrapper with componentssegRatio
contains the
segregation ratios for dominant markersmodelSegratioMM specifying model
parameters, ploidy etcpriorsSegratioMM specifying prior
distributionssetInitsjagsControl containing MCMC
burn in, sample and thinning as well as relavant files for BUGS
commands, inits and dataJAGS .cmd file name and
other filesTRUE)runJAGS produced by running JAGSsegratioMCMC
produced by coda usually by using readJagscodadosagesMCMC containing
posterior probabilities of dosages for each
marker dosage and allocated dosagessetPriors setInits
expected.segRatio
segRatio
setControl
dumpData dumpInits and
diagnosticsJagsMix## simulate small autooctaploid data set
a1 <- sim.autoMarkers(8,c(0.7,0.2,0.1),n.markers=100,n.individuals=50)
##print(a1)
sr <- segregationRatios(a1$markers)
x <- setModel(3,8)
## fit simple model in one hit
x.run <- runSegratioMM(sr, x, burn.in=200, sample=500)
print(x.run)Run the code above in your browser using DataLab