pdmGenes(formula = formula(data), method = c("pls", "pcr", "ridge"),
data = sys.frame(sys.parent()), weights, theta, dimension = J - 1,
eps = .Machine$double.eps, genelist = NULL, list.length = NULL, B = 100, ...)data, the variables are taken from
environment(formula), typically the environment from which
pdmClass is called. Note that unlike most microarray
analyses, in this case rows are samples and columns are genes..Machine$double.eps.method. data.frame for each comparison. The first
column of each data.frame contains the gene names, and the
second column contains the frequency that the gene was observed in the
bootstrapped samples.
The dimension of the solution is typically J - 1, where J is the
number of classes. The model fit uses contr.treatment
contrasts, which means that all of the coefficients in the model
are comparing the given class to a baseline class. Therefore, the
genes listed are those that discriminate between a given class and the
baseline. For instance, if there are three classes (characterized by a
numeric vector of 1s, 2s, and 3s), then there will be two sets of 'top
genes'. The first set will be those genes that discriminate between
class 2 and class 1, whereas the second set will be the genes that
discriminate between class 3 and class 1. The 'Y' vector will
therefore need to be constructed to give the comparisons of interest.
library(fibroEset)
data(fibroEset)
y <- as.factor(pData(fibroEset)[,2])
x <- t(exprs(fibroEset))
genes <- featureNames(fibroEset)
pdmGenes(y ~ x, genelist = genes, list.length = 25, B = 10)
Run the code above in your browser using DataLab