43043 - Hiding special characters within an indirect macro variable reference- Sample
This sample illustrates how to use a macro quoting function to mask special characters within an indirect macro variable reference.
42101 - Using long macro variables more efficiently- Sample
Simple way of reducing multiple macro variables that contain the same long value.
25076 - Resolve a macro variable within single quotes- Sample
Macro variables can be resolved between single quotes using %STR inside a %UNQUOTE function. %UNQUOTE is recommended to remove any remaining macro delta characters created by the %STR function.
25976 - Create a macro variable that contains a quoted list- Sample
This sample illustrates how to create a macro variable that contains a quoted list.
This can be accomplished by using PROC SQL and the INTO statement.
43295 - Using macro variables within a CARDS/DATALINES statement- Sample
This sample gives an example of how to use macro variables within a CARDS/DATALINES statement.
24583 - Using Macro to create a comma delimited file- Sample
Dynamically generate a CSV or comma delimited file with macro logic and SQL dictionary tables.
25448 - Demonstrates SQL JOIN performance with macros- Sample
This example demonstrates SQL JOIN performance with macros.
24727 - Robust macro to write a delimited file- Sample
Create a comma delimited text file from a SAS data set using macro functionality. Several parameters can be used to generate a header, use variable labels, and specify the delimiter.
24997 - Generate confidence ellipses for bivariate normal data- Sample
The %CONELIP macro generates confidence ellipses for bivariate normal data. It can either create ellipses for the data or ellipses about the mean.
26148 - Using the RESOLVE function when a value contains an apostrophe- Sample
Illustrate the appropriate functions needed when passing an apostrophe to the RESOLVE function.
40592 - Calling a SAS procedure function from within another SAS procedure- Sample
When Function A is a part of SAS Procedure A but not a part of SAS Procedure B, it is still possible to call Function A from SAS Procedure B by using the RUN_MACRO function in the FCMP procedure. This sample ...
24991 - Compute biserial, point biserial, and rank biserial correlations- Sample
Computes biserial, point biserial, and rank biserial correlations between a binary and a continuous (or ranked) variable.
34979 - Automatically run Fisher's exact test when the chi-square test might not be valid- Sample
This MACRO automatically performs Fisher's exact test whenever the chi-square test results in a WARNING message regarding the validity of the test in an RxC table because of a large number of cells with expected count ...
24995 - Compare correlations using Fisher's Z transformation- Sample
Fisher's Z transformation is used to compare two correlation matrices. A test statistic and p-value are computed for each pair of correlations testing the hypothesis that the sample correlations estimate the same ...
24999 - Add p-values to PROC CORR output data set- Sample
Restructure a Pearson correlation data set computed by PROC CORR to include p-values for the correlation as well as the number of observations used to compute a correlation.
25290 - Enhanced Printing Capability for SAS/IML with the %PRINTIML Macro- Sample
This sample shows how the %PRINTIML macro provides more labeling than the PRINT statement.
42654 - Return a list of the SASAUTOS locations- Sample
This sample will return a list of the locations specified within the SASAUTOS option.
25034 - Standardize variables- Sample
The %STDIZE macro standardizes one or more numeric variables in a SAS data set by subtracting a location measure and dividing by a scale measure.
24998 - Compute 95% confidence limits for correlation coefficients using Fisher's Z- Sample
Compute 95% confidence intervals for the Pearson correlation coefficients using the estimates computed by PROC CORR.
24634 - Using CALL EXECUTE to execute a DATA step- Sample
Build a DATA step with CALL EXECUTE statements.
49251 - How to find the nth BY group within a data set- Sample
This macro enables you to select the nth BY group from the data set. A parameter value of 'Last' enables you to extract the last BY group from the data set. The second example enables you to select a random BY group ...
46552 - Embed images in a PROC REPORT table- Sample
This sample demonstrates how to insert images as column values in PROC REPORT output.
25018 - Plot ROC curve with labelled points for a binary-response model- Sample
Produce a plot showing the Receiver Operating Characteristic (ROC) curve associated with a fitted binary-response model. This is a plot of the sensitivity against 1-specificity values associated with the ...
This sample shows the usefulness of automatically creating a format for a numeric variable.