The single group module provides the
definition of the
single group
class,
in addition to a pair of auxiliary functions.
See the bottom of the page for an example of how the class can be used.
x
and y
components,
representing a smoothed fit of sd
as a function of
avg
.sd
as multiples of the fitted values
fit$y
.color.coding
. The multiple
argument is required; all points whose scores exceed the multiple
are colored the bad.channel.replicate.color
. All
colors whose score exceeds the span
times the multiple
are colored the worst.channel.replicate.color
. The
span
defaults to the arbitrarily chosen value of 1.6.sd
against avg
, along with a plot
of a given multiple
of the smoothly fitted curve. Only
the first argument is required. The multiple
argument
defaults to the value 3, the color code list (ccl
)
defaults to the values given by the scored.coding
method, and the main
argument defaults to the
name
property of the object.An object of the single.group
class
represents the results of our basic analysis applied to a single group
of replicate gene expression values. It is constructed from the
gene-by-gene vector of means (avg
) and the corresponding
gene-by-gene vector of standard deviations (sd
). These
are fit by a smoothing routine, with the result returned as the
attribute fit
. We also return a score
vector, which measures how much the gene-by-gene standard deviations
differ from the smoothed values. (These scores are multiplicative; ie,
a score of 2 means that the gene-at-a-time value is twice as large as
the smoothed value.)
b
as function of
a
. The smooth is truncated below by setting a lower
bound on the smoothed values; this avoids problems in the
application to microarrays resulting from the small variability of
thresholded values.a
, passed into this function is the same as the first
argument to f.smu
, and that the last argument,
z
is the smooth fit produced by the smoother. We can be
certain that this is the case in the application where we have used
them inside the code for the single.group
objects. With that warning in
mind, we can claim that this function returns a vector of scores
that express the values of the dependent variable d
as
multiples of the fitted values.x <- rnorm(1000, 8, 3) y <- rlnorm(1000, 1, 1/2) z <- single.group(x, y, name='random') summary(z) plot(z, main='whoop')
If you also load the two-group statistics package, then the following example will work.
bogus <- matrix(rnorm(30*1000, 8, 3), ncol=30, nrow=1000) splitter <- rep(F, 30) splitter[16:30] <- T w <- two.group.stats(bogus, splitter) w1 <- single.group(w$mean1, sqrt(w$var1), name='more random') plot(w1, ylim=c(0,5))