linkdat(x, model=NULL, verbose=TRUE, missing=0)
## S3 method for class 'linkdat':
print(x, ..., markers)
## S3 method for class 'linkdat':
summary(object, ...)
## S3 method for class 'linkdat':
as.data.frame(x, ..., famid=F, markers=seq_len(x$nMark), alleles=NULL,
missing=NULL, singleCol=FALSE)
linkdat
object, or a matrix/data.frame. In the latter case, x
should contain containing columns corresponding to those indicated above. The order of the columns must be correct, as column names are ignored.linkdat.model
object (typically y$model
for some linkdat object y
), or a single integer with the following meaning:
1 = autosomal dominant; 2 = autosomal recessive; 3 = X-linked dominant; 4 = X-linked recessive.
alleles=c("A","B")
.linkdat
object, which is essentially a list with some or all of the following entries:data.frame
describing the pedigree in standard linkage format, i.e. one row for each individual and 5 columns: ID, FID, MID, SEX, AFF.matrix
containing the markerdatalinkdat.model
object, essentially a list containing the model parameters. See setModel
for detailsx$model$nallel==2
) - a list of length nInd containing "initial"
haplotype probabilities for each individual, given the penetrance values and allele frequencieslinkdat
object is a list whose entries describe a single medical pedigree. Internally the individuals are relabeled as 1,2,..., but this should rarely be of concern to the end user. Some pedigree checking is done, but it is recommended to plot the pedigree before doing any analysis.setModel
, read.linkdat
, write.linkdat
data(toyped)
toyped
x=linkdat(toyped, model=1)
x
summary(x)
Run the code above in your browser using DataLab