
Last chance! 50% off unlimited learning
Sale ends in
setModel(x, model = NULL, chrom = NULL, penetrances = NULL,
dfreq = NULL, nallel = NULL, afreq = NULL)
## S3 method for class 'linkdat.model':
print(x, ...)
setModel
: a linkdat
object. In print.linkdat.model
: a linkdat.model
object, as described below.linkdat.model
, namely a list with elements
chrom
, penetrances
, dfreq
, nallel
, afreq
.
In the setModel
function, the model
chrom=='AUTOSOMAL'
: a numeric of length 3 - (f_0, f_1, f_2)
- where f_i
is the probability of being affected given i
disease alleles.
If chrom=='X'
: a list of length two containing the nallel
- the population allele frequencies at the marker loci.linkdat
object equal to x
, except that its model
entry is set according to the given parameters.linkdat
data(toyped)
x = linkdat(toyped)
x = setModel(x, model=1)
summary(x)
y = setModel(x, model=4, dfreq=0.1)
summary(y)
Run the code above in your browser using DataLab