R Dataset / Package gap / l51

Submitted by pmagunia on March 9, 2018 - 1:06 PM
Dataset License
GNU General Public License v2.0
Attachment Size
dataset-55916.csv 966 bytes
Documentation

An example pedigree data

Description

The data contains data on 51 individuals in a pedigree. Below it is used for comparing results from various packages.

Usage

data(l51)

Format

A data frame

Source

Morgan v3.

References

Morgan v3. http://www.stat.washington.edu/thompson/Genepi/MORGAN/Morgan.shtml

Examples

## Not run: 
km <- kin.morgan(l51)
k2 <- km$kin.matrix*2# quantitative trait
library(regress)
r <- regress(qt ~ 1, ~k2, data=l51)
names(r)
r
# qualitative trait
N <- dim(l51)[1]
w <- with(l51,quantile(qt,probs=0.75,na.rm=TRUE))
ped51 <- within(l51, bt <- ifelse(qt<=w,0,1))
d <- regress(bt ~ 1, ~k2, data=ped51)
d
# for other tests not shown here
set.seed(12345)
ped51 <- within(ped51,{r <- rnorm(N); bt[is.na(bt)] <- 0})
library(foreign)
write.dta(ped51,"ped51.dta")## End(Not run)
--

Dataset imported from https://www.r-project.org.

Documentation License
GNU General Public License v2.0

From Around the Site...

Title Authored on Content type
R Dataset / Package Stat2Data / Leukemia March 9, 2018 - 1:06 PM Dataset
R Dataset / Package KMsurv / alloauto March 9, 2018 - 1:06 PM Dataset
Chi-squared Random Samples April 19, 2017 - 5:26 PM Operation
R Dataset / Package DAAG / softbacks March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / USFinanceIndustry March 9, 2018 - 1:06 PM Dataset