Learn R Programming

snpRF (version 0.3)

snpRFexample: Simulated genetic data

Description

This is simulated genetic (autosomal and X-chromosome markers) and non-genetic data (gender, age, and smoking status).

Usage

data(snpRFexample)

Arguments

source

Data was simulated using the hapsim R package (http://CRAN.R-project.org/package=hapsim).

References

Giovanni Montana (2012). hapsim: Haplotype Data Simulation. R package version 0.3. http://CRAN.R-project.org/package=hapsim

See Also

snpRF

Examples

Run this code
data(snpRFexample)

stopifnot(require(snpRF))
eg.rf<-snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
             xchrom.names=xchrom.snps.names,x.covar=covariates, 
             y=phenotype)
print(eg.rf)

Run the code above in your browser using DataLab