*Copyright @ www.statschoice.com;


/********************************************************************************

Count the number of variables with a non-missing value - n function

********************************************************************************/






/********************************************************************************

Count the number of variables with a missing value - nmiss function

********************************************************************************/






/********************************************************************************

Find the sum of values present of a list of variables - sum function

********************************************************************************/






/********************************************************************************

Find the sum of values present of a list of variables - sum function
Only at least one question is answered

********************************************************************************/






/********************************************************************************

Find the average of values present of a list of variables - mean function
Denominator should be the number of variables with non-missing values

********************************************************************************/






/********************************************************************************

Find the average of values present of a list of variables - mean function
Denominator should be the number of variables with non-missing values
Mean should be calculated only when at least one variable has a non-missing value

********************************************************************************/






/********************************************************************************

Find the sum of values present of a list of variables - sum function
If all variables have a missing value then set the sum to 0.

********************************************************************************/






/********************************************************************************

Find the minimum value from the values present in a list of variables - min function

********************************************************************************/






/********************************************************************************

Find the minimum value from the values present in a list of variables - min function
If all variables have a missing value then set the minimum value to 0.

********************************************************************************/






/********************************************************************************

Find the maximum value from the values present in a list of variables - max function

********************************************************************************/






/********************************************************************************

Find the maximum value from the values present in a list of variables - max function
If all variables have a missing value then set the maximum value to 0.

********************************************************************************/






/********************************************************************************

Find the subjects whose height is reported in integers - int function

********************************************************************************/






/********************************************************************************

Find the subjects whose height is NOT reported in integers - int function

********************************************************************************/






/********************************************************************************

Extract the integer portion of height value of subject - int function

********************************************************************************/






/********************************************************************************

Round the weight value to nearest integer value - round function

********************************************************************************/

/********************************************************************************

Round the weight value to nearest one decimal value - round function

********************************************************************************/






/********************************************************************************

Round the weight value to nearest two decimal value - round function

********************************************************************************/






/********************************************************************************

Round the weight value to next highest integer - ceil function

********************************************************************************/






/********************************************************************************

Round the weight value to next lowest integer - floor function

********************************************************************************/