The results below are as we would expect. LIST name test1 t1tr t1rnd test2 t2tr t2rnd. Nearest whole number using conventional rounding rules, for example 6.99 would become 7,īut 6.49 would become 6. ByĬontrast, the rnd function (short for round) rounds numbers to the The truncįunction (short for truncate) takes a number and converts it to a whole number (integer)īy removing all the decimal places, for example, 6.99 and 6.49 would become 6. We will see below, SPSS does know to treat these values as missing rather than treating Really does not look any different after we have defined the missing values. Below we tell SPSS about these missing valuesĪnd list out the data again. Missing values, and test1, test2 and test3 We will illustrate some functions using the following data file that These functionsįunction_name(argument1, argument2, etc.) Mathematical functions, string functions, and random number functions. SPSS has a wide variety of functions you can useįor creating and recoding variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |