Small sample pedigree data set for testing purposes.
Usage
data("sampleped")Format
A data frame with 55 observations, one line per subject, on the following 7 variables.
famid: Family identifierid: Subject identifierdadid: Identifier of the father, if the father is part of the data set; zero otherwisemomid: Identifier of the mother, if the mother is part of the data set; zero otherwisesex:1for male or2for femaleaffection:1or0avail:1or0num: Numerical test variable from 0 to 6 randomly distributed
Details
This is a small fictive pedigree data set, with 55 individuals in 2 families. The aim was to create a data set with a variety of pedigree structures.
Examples
data("sampleped")
pedi <- Pedigree(sampleped)
summary(pedi)
#> $pedigree_summary
#> [1] "Ped object with 55 individuals and 5 metadata columns"
#>
#> $relationship_summary
#> [1] "Rel object with 0 relationshipswith 0 MZ twin, 0 DZ twin, 0 UZ twin, 0 Spouse"
#>
if (interactive()) { plot(pedi) }