help plssas
-------------------------------------------------------------------------------

Title

SAS's PROC PLS (Partial Least Squares)

Syntax

plssas [varlist] [, options]

options Description ------------------------------------------------------------------------- Main y(varlist) specify a list of y-variables. x(varlist) specify a list of x-variables. nfac(integer 0) specify the number of factors to extract. nosas specify that SAS should not be run (only used when the output files exist). nofile specifies that the Stata dataset is not exported to a csv file. method(string) specify the general factor extraction method to use, the default is PLS partial least squares. prefix(string) specify a prefix to be added to the names of the output csv files. exe(string asis) specify the path and executable to run SAS. -------------------------------------------------------------------------

Description

plssas creates a *.sas program to run a PLS analysis, then runs this file in the background and the output datasets created by SAS are converted to *.CSV files. The set of files of OUTPUT csv files are:

yweights.csv xweights.csv xload.csv xeff.csv pest.csv perc.csv csp.csv codedcoef.csv out.csv

Also a file called temp.sas will contain the syntax and temp.csv will be the dataset created ready for importing into SAS.

The default version of SAS used is 9.1 and the path is by default c:\Program Files\SAS\SAS 9.1\sas.exe.

A full description of the PLS procedure can be found in the SAS help files. Not all the options are implemented but might be added on request.

A SAS logfile will also be created called temp.log.

Options

+------+ ----+ Main +-------------------------------------------------------------

y(varlist) specifies the list of y-variables or responses.

x(varlist) specifies the list of x-variables or predictors.

nfac(integer 0) specifies the number of factors to extract. The default is exactly the same as the SAS default of the minimum of 15 and the number of predictors.

nosas specifies that SAS will not be executed. This option can only be used if the output csv files from a previous analysis exist in the current directory.

nofile specifies that the Stata dataset is not exported to a csv file. This option should only be used when the output files already exist and hence this command is being used to replay results from a previous analysis.

method(string) specifies the general factor extraction method to use. The default is PLS partial least squares, SIMPLS uses the method of de Jong (1993), PCR is principal components regression, and RRR is reduced rank regression.

prefix(string) specifies a prefix to the csv output filenames.

exe(string asis) specifies the path and name of the SAS executable; note spaces are fine there is no need to use quotes in this option. At present this has been implemented for only the Windows version but will in the future be extended to both Unix and Mac operating systems. The default is the path c:\Program Files\SAS\SAS 9.1\sas.exe.

Examples

plssas, y(fibd99 fat99) x(fber995)

plssas, y(fibd99 fat99) x(fber995)

plssas, y(fibd99 fat99) x(fber995) exe(P:\sas_network_image_8\SAS\sas.exe)

Author

Adrian Mander, MRC Biostatistics Unit Hub for Trials Methodology Research, Camb > ridge, UK.

Email adrian.mander@mrc-bsu.cam.ac.uk

See Also

Related commands:

mvreg