~ubuntu-branches/ubuntu/utopic/r-cran-genabel/utopic

« back to all changes in this revision

Viewing changes to man/GC.Rd

  • Committer: Package Import Robot
  • Author(s): Andreas Tille, Charles Plessy, Andreas Tille
  • Date: 2014-08-07 17:30:04 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140807173004-24c20tmrw61yl5dz
Tags: 1.8-0-1
[ Charles Plessy ]
* debian/control: removed myself from Uploaders.

[ Andreas Tille ]
* New upstream version
* Moved debian/upstream to debian/upstream/metadata
* cme fix dpkg-control
* More detailed copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
\name{GC}
2
 
\alias{GC}
3
 
\title{Genomic control for various model of inheritance using VIF}
4
 
\usage{
5
 
  GC(data, p, x, method = "regress", n,
6
 
    index.filter = NULL, proportion = 1, clust = 0,
7
 
    vart0 = 0, tmp = 0, CA = FALSE, p.table = 0)
8
 
}
9
 
\arguments{
10
 
  \item{data}{Input vector of Chi square statistic}
11
 
 
12
 
  \item{method}{Function of error to be optimized. Can be
13
 
  "regress", "median" or "ks.test"}
14
 
 
15
 
  \item{p}{Input vector of allele frequencies}
16
 
 
17
 
  \item{x}{Model of inheritance (0 for recessive,0.5 for
18
 
  additive, 1 for dominant)}
19
 
 
20
 
  \item{index.filter}{Indexes for variables that will be
21
 
  use for analisis in data vector}
22
 
 
23
 
  \item{n}{size of the sample}
24
 
 
25
 
  \item{proportion}{The proportion of lowest P (Chi2) to be
26
 
  used when estimating the inflation factor Lambda for
27
 
  "regress" method only}
28
 
 
29
 
  \item{clust}{For developers only}
30
 
 
31
 
  \item{vart0}{For developers only}
32
 
 
33
 
  \item{tmp}{For developers only}
34
 
 
35
 
  \item{CA}{For developers only}
36
 
 
37
 
  \item{p.table}{For developers only}
38
 
}
39
 
\value{
40
 
  A list with elements \item{Zx}{output vector corrected
41
 
  Chi square statistic} \item{vv}{output vector of VIF}
42
 
  \item{exeps}{output vector of exepsons (NA)}
43
 
  \item{calrate}{output vector of calrate} \item{F}{F}
44
 
  \item{K}{K}
45
 
}
46
 
\description{
47
 
  This function estimates corrected statistic using genomic
48
 
  control for diffrent models (recessive,dominant,additive
49
 
  etc.), using VIF. VIF coefficients are estimated by
50
 
  optimizing diffrent error functions: regress, median and
51
 
  ks.test.
52
 
}
53
 
\examples{
54
 
data(ge03d2)
55
 
# truncate the data to make the example faster
56
 
ge03d2 <- ge03d2[seq(from=1,to=nids(ge03d2),by=2),seq(from=1,to=nsnps(ge03d2),by=3)]
57
 
qts <- mlreg(dm2~sex,data=ge03d2,gtmode = "dominant")
58
 
chi2.1df <- results(qts)$chi2.1df
59
 
s <- summary(ge03d2)
60
 
freq <- s$Q.2
61
 
result <- GC(p=freq,x=1,method = "median",CA=FALSE,data=chi2.1df,n=nids(ge03d2))
62
 
}
63
 
\author{
64
 
  Yakov Tsepilov
65
 
}
66
 
\keyword{htest}
67