CATS: Difference between revisions

From software
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:
= plot examples =
= plot examples =


=== Simple power plot ====
==== Simple power plot ====
<pre>
<pre>
library(CATS)
library(CATS)

Revision as of 14:30, 5 August 2013

joint power of a non-symetric two stage GWA design

R package for power estimation for a two-stage genome-wide association design. This is a modification of the code from Skol et al 2006, nat genet. so that the relative risk, case-control ratios and allele frequencies are allowed to vary between stages.

Download and installation

Software version 1.01

manual


plot examples

Simple power plot

library(CATS)
rr<-seq(1,2,by=0.05)
maf<-c(0.05,0.1,0.2,0.5)
c2<-curve.cats(rr,maf,ncases=600,ncontrols=600,ncases2=600,ncontrols2=600,alpha=0.000001,prevalence=0.01);

plot(c2,type="One",main="power2",ylab="Power",xlab="RR",file=NULL,col=1:4)
lines.cats(c2,type="Replication",lty=3)
lines.cats(c2,type="Joint",lty=2)
lines.cats(c2,type="First",lty=4)
legend("left",c("One stage","Joint","Relication","First Stage"),lty=1:4,bty="n")