Question: Write a single DATA step that takes an existing SAS data set and creates a new SAS data set for which each observation consists of

Write a single DATA step that takes an existing SAS data set and creates a new SAS data set for which each observation consists of the mean and standard deviation of the absolute values of all numeric variables in the corresponding observation from the original set. (Note: the new data set should have the same number of observations as the old data set, but only two variables.) Use arrays with the functions MEAN, STD, and ABS for the numerical calculations.
Your code should employ macro variables to work with any two SAS data sets that the user
specifies for the original and resulting sets. Apply your code to the data set using PROC PRINT to show the result.
Solve this by sas

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!