Description Usage Arguments Value Author(s) See Also Examples
Write JAGS .cmd file to disk
1 2 | writeControlFile(jags.control,
file = paste(jags.control$stem, ".cmd", sep = ""))
|
jags.control |
Object of class |
file |
JAGS .cmd file name |
None.
Peter Baker p.baker1@uq.edu.au
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## simulate small autooctaploid data set
a1 <- sim.autoMarkers(8,c(0.7,0.2,0.1),n.markers=100,n.individuals=50)
sr <- segregationRatios(a1$markers)
## set up model with 3 components
x <- setModel(3,8)
x2 <- setPriors(x)
dumpData(sr, x)
inits <- setInits(x,x2)
dumpInits(inits)
##x.priors <- setPriors(x, "vague")
writeJagsFile(x, x2, stem="test")
small <- setControl(x, burn.in=20, sample=50)
writeControlFile(small)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.