Description Usage Arguments Value Author(s) See Also Examples
Scan GWA data using glm
1 2 |
formula |
character string containing formula to be used in |
family |
family to be passed to |
snpsubset |
Index, character or logical vector with subset of SNPs to run analysis on.
If missing, all SNPs from |
idsubset |
Index, character or logical vector with subset of IDs to run analysis on.
If missing, all people from |
data |
object of class "gwaa.data" |
bcast |
show progress every |
Object of class scan.gwaa-class
Yurii Aulchenko
ccfast
,
qtscore
,
scan.gwaa-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | require(GenABEL.data)
data(srdta)
a <- scan.glm("bt~sex+age+CRSNP",family=binomial(),data=srdta,snps=(1:10),bcast=2)
#plot(a)
osnp <- "rs4934"
maposnp <- srdta@gtdata@map[osnp]
maposnp
reg <- snp.names(srdta,begin=maposnp-100000,end=maposnp+100000,chrom="1")
## Not run:
a <- scan.glm("qt3~sex+age+CRSNP",data=srdta,snps=reg)
plot(a)
plot(a,df=1)
add.plot(a,df=2)
## End(Not run)
# interaction with sex
## Not run:
a <- scan.glm("qt3~age+sex*CRSNP",data=srdta,snps=reg)
plot(a,df=1)
add.plot(a,df=2)
# you can do interaction with a selected polymorphisms in the same way
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.