r18 - 16 Dec 2008 - 18:59:51 - PeterBacchettiYou are here: TWiki >  CTSpedia Web > StatisticalTools > SasTools

SAS Macros

These are components that can be used within your own SAS programs. Headings at the top of each file describe how to call or use them, and examples are provided. See below for guidelines on calling these from within your programs.

(For more biostatistical SAS tools see sasCommunity.org.)

Calling macros

To use one of these macros in your program, or within another macro you create to post here, put statements like the following before you call the macro:

* filename lreg URL "http://twiki.library.ucsf.edu/twiki/bin/viewfile/CTSpedia/LogisticRegression?rev=2;filename=Logistic.sas";
filename lreg URL "http://ctspedia.org/twiki/pub/CTSpedia/LogisticRegression/Logistic.sas";
%include lreg;

These statments make the main logistic regression macro available. The fileref "lreg" in the above is just a word that you can make up, but it should be no more than 8 characters long. (Note that you should be able to copy and paste, rather than type in, the URLs: Here's how).

It will usually be best to use this form, which uses the most current version of the file even if it changes since you first wrote your program. This will incorporate any subsequent error or problem corrections. The commented out statement above it instead finds the specific version of the macro that was current when you wrote your program. You may need this if a later updated version is not called the same way or does not produce the same output as assumed in your program. Switching which statement is commented out will then permit your program to run as originally intended without updating it to work with the later version of the macro it calls. The current number for the "rev=" part should be noted for each posted macro.

Possible Enhancements

Investigate use of the SvnPlugIn to track versions of tools.
Develop a convention for noting errors found and corrected in earlier versions, so that users of the tools know that they should update any old programs to use the newer versions.

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r18 < r17 < r16 < r15 < r14 | More topic actions
 
CTSpedia knowledge base
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Content on CTSpedia is covered by disclaimers.

Copyright © by the contributing authors.
Ideas, requests, problems regarding CTSpedia? Send feedback
This site is powered by TWIKI.NET's Certified TWikiPowered by TWIKI.NET