Hello,
i have three variables. I want to get the average of these variables, however I have missing data.
So for example, if I have one person who has scored 8 in one variable, 6 in another variable and missing data in the third variable, the average I would want would be 7, as this is the average of the two scores available. However by having that missing value in the third variable, the average would 4.6.
can it be done so that you have a code that gives you the average score from available data whether they be from one, two or three variables?
i have three variables. I want to get the average of these variables, however I have missing data.
So for example, if I have one person who has scored 8 in one variable, 6 in another variable and missing data in the third variable, the average I would want would be 7, as this is the average of the two scores available. However by having that missing value in the third variable, the average would 4.6.
can it be done so that you have a code that gives you the average score from available data whether they be from one, two or three variables?
Comment