Utility Macros

These are macros that are often used within higher level macros.

Utilities for data manipulation

  • Univariate.sas (rev=3): Calculates summary statistics for specified variables. Updated 3/26/08.
  • quartiles.sas (rev=3): Creates quartile versions of continuous variables. Updated 3/26/08.
  • residsqr.sas (rev=1): Calculate the average studentized residuals within each 10-percentile. Updated 4/22/08.
  • NPar1way.sas: (rev 2) Combines output from Univariate with non-parametric p-values and organizes results.
  • TransposeMany.sas (rev=1): Contains a long2wide and wide2long macro for transposing many variables at once.
  • delta.sas : Creates a dataset with the changes from baseline or time=T. (More Deltas.doc)

Macro Tools/Utilities

  • words.sas (rev=1): Counts the words in a string (used only for byvars where shortcut lists not allowed). This is taken directly from p256 of the SAS Macro manual.
  • Varlist.sas (rev=2): takes a shortcut list of SAS variables as input and returns the expanded list of variable names.
  • RefDummy.sas (rev=1): Finds the reference values for categorical variables and creates dummy variables. Updated 4/22/08.
  • dummy.sas (rev=1): Creates dummy variables for categorical variables. Updated 4/22/08.
  • NextWord.sas Function that returns the first word from a list. (More NextWord.doc)
  • RunPrograms.sas Executes a list of SAS programs. (More RunPrograms.doc)
  • GetVarList.sas Returns a list of all the Numeric or Character variables in a dataset. (More GetVarList.doc)
  • ReplayGraphs.sas Replay graphs from a catalog to put several on one page. (More ReplayGraphs.doc)

Variable or parameter checking macros

Topic revision: r32 - 15 Jul 2010 - 08:36:19 - RuiChen
 
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CTSPedia? Send feedback