dumpData {polySegratioMM} | R Documentation |
Dumps segregation ratio data to file for subsequent JAGS run
Description
Given segregation ratio data provided as an object of class
segRatio
, data are dumped in R format for use by JAGS
Usage
dumpData(seg.ratio, model, stem = "test", fix.one = TRUE,
data.file = paste(stem, "-data.R", sep = ""))
Arguments
seg.ratio |
Object of class |
model |
Object of class |
stem |
File name stem for data file (default “test”) |
fix.one |
Logical to fix the dosage of the observation closest to
the centre of each component on the logit scale. This can greatly
assist with convergence (Default: |
data.file |
Data file name which is automatically generated from
|
Value
None.
Author(s)
Peter Baker p.baker1@uq.edu.au
See Also
Examples
## simulate small autooctaploid data set
a1 <- sim.autoMarkers(8,c(0.7,0.2,0.1),n.markers=100,n.individuals=50)
## compute segregation ratios
sr <- segregationRatios(a1$markers)
## set up model for 3 components of autooctoploid
x <- setModel(3,8)
dumpData(sr, x)
[Package polySegratioMM version 0.6-4 Index]