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

« back to all changes in this revision

Viewing changes to R/grammar.R

  • Committer: Package Import Robot
  • Author(s): Charles Plessy
  • Date: 2013-05-01 14:58:43 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130501145843-zfhxlxrouu8cx3tg
Tags: 1.7-4-1
* New upstream version 
* Updated qvalue package name (moved from CRAN to Bioconductor).
* Drop references to old name r-other-genabel.
* Drop build-dependance on package only suggested.
* Normalised VCS URLs following Lintian's standard.
* Acquire R:Depends directly from r-base-dev.
* Normalised control file with cme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        if (method == "gamma") {
89
89
                out <- qtscore(polyObject$pgresidualY,data=data,clambda=TRUE, ... )
90
90
                # correct test and beta values
91
 
                out@results[,"chi2.1df"] <- out[,"chi2.1df"]/polyObject$grammarGamma$Test
92
 
                out@results[,"effB"] <- out[,"chi2.1df"]/polyObject$grammarGamma$Beta
 
91
                out@results[,"chi2.1df"] <- out@results[,"chi2.1df"]/polyObject$grammarGamma$Test
 
92
                out@results[,"effB"] <- out@results[,"effB"]/polyObject$grammarGamma$Beta
 
93
                # re-compute standard errors (c2 = (b/se)^2; se = b/sqrt(c2))
 
94
                out@results[,"se_effB"] <- abs(out@results[,"effB"])/sqrt(out@results[,"chi2.1df"])
93
95
                # recompute p-values
94
 
                out@results[,"P1df"] <- pchisq(out[,"chi2.1df"],df=1,lower.tail=FALSE)
 
96
                out@results[,"P1df"] <- pchisq(out@results[,"chi2.1df"],df=1,lower.tail=FALSE)
95
97
                # recompute Lambda
96
98
                out@lambda <- estlambda(out[,"chi2.1df"],plot=FALSE,proportion=propPs)
97
99
                if (out@lambda$estimate <= 1) {
109
111
        # set uncorrectet stats to NA to avoid confusion
110
112
        out@results[,"effAB"] <- out@results[,"effBB"] <- out@results[,"chi2.2df"] <- 
111
113
                        out@results[,"P2df"] <- NA
 
114
        out@call <- match.call()
112
115
        # return results
113
116
        return(out);
114
117
}
 
 
b'\\ No newline at end of file'