File: samr.compute.delta.table.Rd

package info (click to toggle)
r-cran-samr 3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,020 kB
  • sloc: fortran: 102; makefile: 7
file content (63 lines) | stat: -rwxr-xr-x 2,029 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\name{samr.compute.delta.table}
\alias{samr.compute.delta.table}
\title{Compute delta table for SAM analysis}
\description{
Computes tables of thresholds, cutpoints and corresponding
False Discovery rates for SAM (Significance analysis of microarrays)
analysis
}
\usage{

samr.compute.delta.table(samr.obj, min.foldchange=0, dels=NULL, nvals=50)
}
\arguments{
  \item{samr.obj}{ Object returned from call to samr}
 \item{min.foldchange}{The minimum fold change desired; should be >1;
default is zero, meaning no fold change criterion is applied}
\item{dels}{vector of delta values used. 
Delta is the vertical distance from the 45 degree line to the upper and lower
parallel lines that define the SAM threshold rule.
By default, for array data, 50 values
are chosen in the relevant operating change for delta.
For sequencing data, the maximum number of effective delta values
are chosen automatically according to the data.
}

\item{nvals}{Number of delta values used. 
For array data, the default value is 50. For sequencing data,
the value will be chosen automatically.}
}
\details{Returns a table of the FDR and upper and lower cutpoints for various values of
delta, for a SAM analysis.
}

\references{Tusher, V.,  Tibshirani, R.  and Chu, G. (2001): 
Significance analysis of microarrays applied to the ionizing radiation response"  PNAS 2001 98: 5116-5121, (Apr 24).
http://www-stat.stanford.edu/~tibs/sam}
\author{ Balasubrimanian Narasimhan and Robert Tibshirani}


\examples{
#generate some example data
set.seed(100)
x<-matrix(rnorm(1000*20),ncol=20)
dd<-sample(1:1000,size=100)

u<-matrix(2*rnorm(100),ncol=10,nrow=100)
x[dd,11:20]<-x[dd,11:20]+u

y<-c(rep(1,10),rep(2,10))

data=list(x=x,y=y, geneid=as.character(1:nrow(x)),
genenames=paste("g",as.character(1:nrow(x)),sep=""), logged2=TRUE)


samr.obj<-samr(data,  resp.type="Two class unpaired", nperms=50)

delta.table<- samr.compute.delta.table(samr.obj)

}
\keyword{univar}% at least one, from doc/KEYWORDS
\keyword{survival}
\keyword{ts}
\keyword{nonparametric}