Return to Stat Tools Home

Title: Partial Least Squares

Evaluate this tool by clicking on the stars:

%VOTE{id="EvalStatTools" stars1="Tools Overall Rating" stars2="Code Works Well" stars3="Good Instructions" global="off" open="off" secret="off" format="| $key | $small
Score: $score, My vote: $mylast, Total votes: $sum |" }%

Add Comments and then click on "Add comment" button

Please note any errors found in the macros.

%COMMENT%

StatToolsForm edit

Type of Tool SAS Macro
Title Partial Least Squares
Programmer/Email Danh Nguyen
Contributing Site Davis
Description This file contains some sample SAS codes to run partial least squares (PLS). The codes below

1. read in a matrix of gene expression values of size n x p (here p=3846) and a vector of class indicator (0 or 1) and
2. run PROC PLS.

The expression matrix here is SPACE delimited. If your expression matrix is TAB delimited (or another type), change the the line: delimiter=' ' (space) to delimitor=''(tab), etc.

Comments can be found below along with the codes. For details on PLS see the SAS documentation for PROC PLS (pp.2691-2734), SAS/STAT User's Guide, Version 8, SAS Institute Inc. (1999). Many examples are given there.

The data set OUTPLS includes the variables xscr1-xscr&lv, which are the PLS gene components. You can run your favorite classification routine in SAS, such as PROC LOGISTIC or PROC DISCRIM, or you can save the PLS gene components and input it into your favorite program.
Classification Graph Type
References
Datasets
Data
Software Program SAS
Software SAS
Macro Parameters N/A
R-Code - Attachment
R-Code
SAS-Code - Attachment Davis_Partial Least Squares_Main Macro
SAS-Code
Stata-Code - Attachment
Stata-Code
Other Code - Attachment
Other Code
Called Data Manipulation
Called Tool/Utility
Called Checking Macro
Called Other
Creation-Date
Revision-Date
Example Code
Example Output
SAS Examples
SAS_Example_Code
SAS_Example_Output
R Examples
R_Example_Code
R_Example_Output
Stats Examples
Special Features
Special Features Attached
Special Features Text
Notes1-Legend Section with calls to needed macros
Notes1
Notes2-Legend Macro call with fully specified parameters
Notes2
Notes3-Legend Section with definitions of global macro parameters
Notes3
Notes4-Legend Section with definitions of local macro variables
Notes4
See Also
Checklists
Stat Tools Disclaimer
Discliamer The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated.
Permission Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Reference Image
This topic: CTSpedia > WebHome > StatToolsHome > StatToolsTopic011
Topic revision: 21 Jun 2012, MaryBanach
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback