Start Day 4;
Array Array Array
The array statement defines a set of variables as elements of an array.
The array variables has to be either all numeric or all character.
Syntax: ARRAY array-name{subscript}
;
Example:
Array v(5) v1-v5; *var1 to var5 are variables in the data set.
Array score(4) score_a score_c score_f score_t;
Array bb(3) (10 20 30) ; * Initialize numeric array;
Array aa(3) $3. (‘AAA’ ‘BBB’ ‘CCC’); * Initialize character array;
Array week(7) $3. ('Sun' 'Mon' 'Tue' 'Wed' 'Thu' 'Fri' 'Sat');
Array wk(7) $3. ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
Example 1: Use array to perform calculations on a group of variables.
*** generate data;
data test_array(drop=i r);
length ID 8;
array mth(12) mth1-mth12;
do ID=1 to 100;
do i=1 to 12;
mth(i) = int(ranuni(1)*1000);
r=ranuni(0);
if r ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- ancova examples using sas university of michigan
- multiple regression ii
- transformations using sas
- steps for conducting multiple linear regression
- start day 4
- working with sas formats catalogs
- defining data in spss
- ancova examples using sas
- structural equation modeling purdue university
- analysis of augmented designs using sas
Related searches
- region 4 head start conference
- day 4 after tooth extraction
- victoria 2020 pbs season 4 start date
- head start region 4 conference
- how to start a doggie day care
- how to start an adult day care
- region 4 head start jobs
- region 4 head start training
- adult day care start up cost
- 4 letter words that start with q
- 4 letter words that start with que
- 4 letter words start with a