![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Contents: | Purpose / Requirements / Usage / Limitations |
Follow the instructions in the Downloads tab of this sample to save the %RUN_FISHERS macro definition. Replace the text within quotes in the following statement with the location of the %RUN_FISHERS macro definition file on your system. In your SAS program or in the SAS editor window, specify this statement to define the %RUN_FISHERS macro and make it available for use:
%inc "<location of your file containing the RUN_FISHERS macro>";
Following this statement, you may call the %RUN_FISHERS macro. See the Results tab for an example.
The following parameters are required:
The following parameter is optional:
The version of the %RUN_FISHERS macro that you are using is displayed when you specify version (or any string) as the first argument. For example:
%run_fishers(version, data=a, row=r, col=c)
No error checking is done. The macro assumes that the specified data set and variables exist and that their names are correctly specified.
Note that Fisher's exact test can become very computationally intensive as the sample size and the dimension of the table become large. This can result in extremely long run times and very large memory requirements. For details, see "Statistical Computations: Exact Statistics" in the Details section of the FREQ procedure documentation in the SAS/STAT User's Guide.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
data test; input r c ct; datalines; 1 1 12 1 2 5 1 3 6 2 1 13 2 2 2 2 3 4 ; /* Define the RUN_FISHERS macro */ %inc "<location of your file containing the RUN_FISHERS macro>"; %run_fishers(data=test, row=r, col=c, count=ct)
Right-click on the link below and select Save to save
the %RUN_FISHERS macro definition
to a file. It is recommended that you name the file
run_fishers.sas
.
Download and save run_fishers.sas
Type: | Sample |
Topic: | Analytics ==> Categorical Data Analysis Analytics ==> Exact Methods |
Date Modified: | 2009-03-25 15:30:15 |
Date Created: | 2009-02-27 13:37:53 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | Base SAS | z/OS | ||
OpenVMS VAX | ||||
Microsoft® Windows® for 64-Bit Itanium-based Systems | ||||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | ||||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | ||||
Microsoft Windows XP 64-bit Edition | ||||
Microsoft® Windows® for x64 | ||||
OS/2 | ||||
Microsoft Windows 95/98 | ||||
Microsoft Windows 2000 Advanced Server | ||||
Microsoft Windows 2000 Datacenter Server | ||||
Microsoft Windows 2000 Server | ||||
Microsoft Windows 2000 Professional | ||||
Microsoft Windows NT Workstation | ||||
Microsoft Windows Server 2003 Datacenter Edition | ||||
Microsoft Windows Server 2003 Enterprise Edition | ||||
Microsoft Windows Server 2003 Standard Edition | ||||
Microsoft Windows XP Professional | ||||
Windows Millennium Edition (Me) | ||||
Windows Vista | ||||
64-bit Enabled AIX | ||||
64-bit Enabled HP-UX | ||||
64-bit Enabled Solaris | ||||
ABI+ for Intel Architecture | ||||
AIX | ||||
HP-UX | ||||
HP-UX IPF | ||||
IRIX | ||||
Linux | ||||
Linux for x64 | ||||
Linux on Itanium | ||||
OpenVMS Alpha | ||||
OpenVMS on HP Integrity | ||||
Solaris | ||||
Solaris for x64 | ||||
Tru64 UNIX |