This sample illustrates how to use a macro quoting function to mask special characters within an indirect macro variable reference.
Simple way of reducing multiple macro variables that contain the same long value.
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.
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.
This sample gives an example of how to use macro variables within a CARDS/DATALINES statement.
Dynamically generate a CSV or comma delimited file with macro logic and SQL dictionary tables.
This example demonstrates SQL JOIN performance with macros.
The %CONELIP macro generates confidence ellipses for bivariate normal data. It can either create ellipses for the data or ellipses about the mean.
Illustrate the appropriate functions needed when passing an apostrophe to the RESOLVE function.
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 ...
Computes biserial, point biserial, and rank biserial correlations between a binary and a continuous (or ranked) variable.
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 ...
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 ...
This sample shows how the %PRINTIML macro provides more labeling than the PRINT statement.
Compute 95% confidence intervals for the Pearson correlation coefficients using the estimates computed by PROC CORR.
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 ...
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.