odds: Extract odds ratios, 95% CI and pvalues

View source: R/odds.r

oddsR Documentation

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"))

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.

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.

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

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

isglobal-brge/SNPassoc documentation built on May 15, 2023, 8:10 p.m.