snpRF (version 0.4)

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

Format

snpRFexample contains 6 objects:
autosome.snps
A matrix of 20 autosomal SNPs with each column corresponding to a SNP coded as count of a particular allele (i.e. 0,1 or 2), and each row corresponding to a subject (n=200).
xchrom.snps
A matrix of 10 X chromosome SNPs, each SNP coded as two adjacent columns (20 columns in all), alleles of a marker are coded as 0 or 1 for carrying a particular allele. Altough males only have one X-chromosome, their SNPs are coded as 2 columns as well, the second column being a duplicate of the first. Each row of this matrix corresponsponds to a subject (n=200). This data is phased and in chromosomal order.
xchrom.snps.names
A vector of names for markers in the xchrom.snps matrix ordered in the same manner as markers in xchrom.snps.
covariates
A matrix of 2 covariates, each column being a different covariate (ie. age and smoking status (yes=1, no=0)) and each row a subject (n=200).
phenotype
A vector indicating whether each subject is a case or a control.
gender
A vector indicating whether each subject is male or female.

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