Description
Use the AmesHousing data set to complete this exercise.
Using the SYMPUTX Subroutine
a. The SYMPUTX subroutine enables you to create a macro variable inside a DATA step. Navigate to the online documentation for a complete description. Open SP4R05e03.sas. Submit the code (shown below) and analyze both the code and log output. What does this code do?
data _NULL_; x=-3; df=5;
p=(1-probt(abs(x),df))*2; call symputx(‘sig_level’,p); run;
%put The significance level for the two-tailed t test is &sig_level;
b. An alternative method to creating the macro variable in Exercise 2 is to use the SYMPUTX subroutine. Use a DATA _NULL_ step, a SET statement, and the SYMPUTX routine to create a macro variable for the median of the saleprice variable. Use the %PUT statement to ensure that the macro variable is created correctly.




Reviews
There are no reviews yet.