06-17-2013 03:21 AM
Suppose we have the values for each of the 3 variables eg. Score_assignment, Score_quiz, Score_forum for a set of students. Now I want to get the average value for each of the student. But for some students values of one or more variables are missing. Then we will calculate the average by using the following formula:
Please write down a sas code such that I can calculate the average value using the above logic.
06-18-2013 07:43 AM
vxhong17 is correct. Read the documentation on the mean() function and you will see that it automatically omits missing values from its calculations.
Need further help from the community? Please ask a new question.