November 2009
Intermediate to advanced
332 pages
10h 8m
English
Rearrange a data set by changing selected variables in a group of observations to a group of variables in one observation. Reshape data by collapsing observations within a BY group into a single observation in order to simplify data analysis and report generation.
The example uses the same input data set as Example 8.9.
| Featured Step | DATA step |
| Featured Step Options and Statements | BY statement
FIRST.variable and LAST.variable temporary variables OUTPUT statement |
| Related Technique | PROC TRANSPOSE, PREFIX= option, BY, ID, RETAIN, and VAR statements DATA step, match-merging by value and merging a data set with itself |
Data set WEIGHT_BMI ...
Read now
Unlock full access