SAS program (saved as LASTNAME_FIRSTNAME_HW3) Make sure to use the %let statement
to create a path use that path to locate the data set/define the library for the SAS data set.
Please make sure to comment your code and title any output (even though you won’t submit
output, we will be looking at it to make sure that your code ran correctly).
Often times we are interested in comparing whether there is a statistical difference in two groups for some
continuous variable or variables of interest. If we are comparing two independent groups, we will want to use
the two-sample t-test (if the sample size is large) or the Wilcoxon rank sum test (if the sample size is not large).
Write a single macro called tests that will conduct tests to compare one (or multiple) continuous variables by a
single two-level group variable. Do NOT create any macro variables outside of the macro, exception being the
pathname. The macro should determine whether small or large sample tests are to be conducted, and then
conduct the appropriate tests.
NOTE: The output should NOT contain the default plots. Make sure that the macro is general enough that we
will be able to run the code for a completely different SAS data set (not necessarily located in the same path or
library) and set of variables. For this assignment, please include the macro and documentation in one program.
Deliverables:
1) Create the macro
2) Demonstrate this macro works by providing 2 calls to the macro at the end of the code using the modified
Berkeley Guidance Data set, which is provided as SAS data set (bgd).
• Run the macro to determine if there is a difference by gender for BMI18, ST18, HT18, WT18.
• Run the macro to determine if there is a difference by gender for LG9 and LG18