Arrays In SAS

preview_player
Показать описание
Array in SAS is a set of variables of the same type. The variables in an array are called elements and can be accessed based on their position. One can use the name of the array to reference the set of variables. Arrays are useful to create new variables and carry out repetitive tasks. For example, with a SAS DO Loop. One can declare and use an array in a SAS DATA Step or in a SAS Macro Function.

Chapters:

0:00 Introduction to Arrays in SAS
0:47 Syntax of SAS Arrays
2:03 Applications of SAS Arrays
2:23 Examples of SAS Arrays

#dataanalysis #analytics #sasprogramming #sasprogrammingtutorial #basesas #dataanalytics #analyticsschool
Рекомендации по теме
Комментарии
Автор

How we can use the array after transpose 1varible and we don't have any no in transposed variable??

shilpahait
Автор

Just a small query in ur last example which was Target vs achievement, u wrote sum(sales{i}, -target{i}), I wonder why it is written like this instead it since we want to see the difference, can we write it like this diff{i}=sales{i}-target{i}??

SachinSharma-qxoh
Автор

Thank you so much, this helped me a lot!!!

yungpesca