qstats | R Documentation |
This function is a helper function that
computes quantile statistics for the function
qsmooth
.
qstats(object, group_factor, window = 0.05)
object |
an object which is a data frame or matrix with observations (e.g. probes or genes) on the rows and samples as the columns. |
group_factor |
a group level continuous or categorial
covariate associated with each sample or column in the
|
window |
window size for running median which is
a fraction of the number of rows in |
A list of quantile statistics including
Q |
sample quantiles |
Qref |
reference quantile |
Qhat |
linear model fit at each quantile |
SST |
total sum of squares |
SSB |
between sum of squares |
SSE |
within sum of squares |
roughWeights |
SSE / SST |
smoothWeights |
smoothed weights computed using a
running median with a given |
dat <- cbind(matrix(rnorm(1000), nrow=100, ncol=10), matrix(rnorm(1000, .1, .7), nrow=100, ncol=10)) qs <- qstats(object = dat, group_factor = rep(c(0,1), each=10), window = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.