You can do this in Base SAS or by using a powerful subscript operator in the SAS/IML matrix language. If you think of your numerical data as being in a matrix, the task is to compute the minimum and maximum values for each row or for each column. This article shows how to compute the minimum and maximum values for each observation (across variables) and, for completeness, for each variable. It is easy to compute statistics across rows by using the DATA step. A common question on SAS discussion forums is how to compute the minimum and maximum values across several variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |