Create a macro that implement this functionality: by specifying a dataset name and a variable name in the dataset, draw a histogram of the variable if the variable is a numerical variable, and draw a bar chart of the variable if the variable is a categorical variable Then use the macro to draw a histogram of age at death as well as a bar chart of cause of death for the SASHELP.Heart dataset. You may want to use the VARTYPE function.
... View more