Usage
setModel(x, model = NULL, chrom = NULL, penetrances = NULL,
dfreq = NULL, nallel = NULL, afreq = NULL)
## S3 method for class 'linkdat.model':
print(x, ...)
Arguments
x
in setModel
: a linkdat
object. In print.linkdat.model
: a linkdat.model
object, as described below.
model
NULL, or an object of class linkdat.model
, namely a list with elements
chrom
, penetrances
, dfreq
, nallel
, afreq
.
In the setModel
function, the model
chrom
a character, either 'AUTOSOMAL' or 'X'. Lower case versions are allowed and will be converted automatically.
penetrances
if 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
dfreq
the population frequency of the disease allele.
nallel
the number of alleles at the marker loci. At the moment different numbers for different loci are not supported.
afreq
a numeric of length nallel
- the population allele frequencies at the marker loci.