Learn R Programming

SNPassoc (version 2.0-11)

odds: Extract odds ratios, 95% CI and pvalues

Description

Extract odds ratios, 95

Usage

odds(x, model=c("log-additive", "dominant", "recessive", "overdominant", "codominant"), 
      sorted=c("no","p-value","or"))

Value

A matrix with OR 95% CI (lower, upper) and P value for the selected model. For codominant model, the OR and 95%CI are given for heterozygous and homozigous.

Arguments

x

an object of class 'WGassociation' output of WGassociation

model

model to be extracted. Only first one is used. The first letter is enough, low or upper case.

sorted

Sort the output by P value or OR.

References

JR Gonzalez, L Armengol, X Sole, E Guino, JM Mercader, X Estivill, V Moreno. SNPassoc: an R package to perform whole genome association studies. Bioinformatics, 2007;23(5):654-5.

Examples

Run this code
 data(SNPs)
 datSNP<-setupSNP(SNPs,6:40,sep="")
 ans<-WGassociation(casco~1,data=datSNP,model="all")
 odds(ans)

Run the code above in your browser using DataLab