"Write a macro program named ‘HistAndStats’ which may be used to summarize a numeric variable from any data set.The macro should contain the 1 parameter: ‘Stats’ to specify summary statistics. Include default statistics of N, MEAN, and STDDEV."
How do you set the parameter 'Stats' to the summary statistic results?
Defines the macro with a parameter called stats, and also defines a default value for it (which will be set if the macro is called without a parameter).
To really make this macro useful, it should also contain parameters for dataset and variable name.
Defines the macro with a parameter called stats, and also defines a default value for it (which will be set if the macro is called without a parameter).
To really make this macro useful, it should also contain parameters for dataset and variable name.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!