1. You first need to install a recent version of the R statistical package.
This is free, and can be found at
The R project.
2. Download either the Unix/Linux version or Windows version from the
PAM R distribution.
For windows just save the file and do not click on "open".
In Windows, click on the R icon, pull down the Packages menu item
and select "Install packages from local zip file". Select the file
pamr_1.01.zip that you just saved.
In Windows, in R pull down the Packages menu item
and select "Load package". Select pamr .
You are now ready to use Pam. Only step 4 above needs to be done
each time you startup R.
In Windows you will find it helpful to go the ``Misc'' menu and turn off
buffered output. This forces R output to be immediately written to the
console.
"Diagnosis
of multiple cancer types by shrunken centroids of gene expression"
. PNAS 2002 99:6567-6572 (May 14).
Contents
How to download and use pamr
Summary of functions
Sample session
Note on data entry
Defining new classes- the function pamr.makeclasses
How does nearest shrunken centroid classification work?
How to download and use pamr
Follow the instructions.Click on CRAN under Download, You probably want a pre-compiled version. Eg for windows, click on Windows (95 or later), click on base/, and download SetupR.exe.
Installation takes 5-10 minutes. R is a great
package, and is worth knowing about!
3. For Unix/Linux type
R CMD INSTALL -l mylib pamr_1.01.tar.gz
4. For Unix/Linux, start R and type
library(pamr,lib.loc="mylib")
To startup R in Unix/Linux you type "R".
In Windows you double click on the R icon.
Summary of functions
pam.knnimpute
A function to impute missing expression data pamr.adaptthresh
A function to adaptive choose threshold scales, for use in pamr.train pamr.batchadjust
A function to mean-adjust microarray data by batches pamr.cv
A function to cross-validate the nearest shrunken centroid classifier pamr.from.excel
A function to read in a text file saved from Excel pamr.makeclasses
A function to interactively define classes from a clustering tree pamr.menu
A function that interactively leads the user through a PAM analysis pamr.plotcen
A function to plot the shrunken class centroids, from the nearest shrunken centroid classifier pamr.plotcv
A function to plot the cross-validated error curves from the nearest shrunken centroid classifier pamr.plotcvprob
A function to plot the cross-validated sample probabilities from the nearest shrunken centroid classifier pamr.predict
A function producing predicted information, from a nearest shrunken centroid fit. pamr.to.excel
A function to write out a data object into a tab-delimited text file pamr.train
A function to train a nearest shrunken centroid classifier