Question : You have been given a data set named HESAMPLE with the column variables named COURSE_ID, COURSE_NAME, COURSE_FEE, STUDENTS. TRAINING_DATE etc. which of the following is not a good fit for descriptive analytics using MEANS PROCEDURE?
Correct Answer : Get Lastest Questions and Answer : Explanation: ID number just an unique if for the variables. Hence, there is no point of generating statistics for that variable.
Question : You have been using PROC MEANS procedure for descriptive analytics, which of the following statement is true when you want to categorize the data using BY statement? A. Data must be already sorted or indexed in the order of the by statement. B. Output will be generated in multiple tables instead of single C. Data must not be already sorted or indexed in the order of the by statement. D. Output will be generated in single tables instead of single
Correct Answer : Get Lastest Questions and Answer : Explanation: When you use MEANS procedure and By statement for the categorization of the data. Using the By statement: Similar to Class you can use By statement for categorization. However, By statement A. Data must be already sorted or indexed in the order of the By statement. B. So you can use the SORT procedure for that. C. Output will be generated in multiple tables instead of single
Question : Which of the given SAS code will generate the below output
1. proc means data=course2017 ; by course_name fee; run;
2. proc means data=course2017 ; class course_name fee; run;
4. proc means data=course2017 ; class course_name ; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: As looking at the output you can see that it has been categorized on two variables course_name and fee. Hence option 4 is out. Now the main point here is between By and class. Remember By statement will always generate multiple tables for multiple variables. Here in the output only 1 table is given Hence option 1 is out. Also the order of the variable will be maintained from the class statement hence option 2 is correct.