![]() | ![]() | ![]() | ![]() | ![]() |
The sample code on the Full Code tab illustrates how to use PROC MEANS with the COMPLETETYPES option to create all possible combinations of class variable values.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
/* Create starting data */
data missing;
input date mmddyy8. x1 x2;
format date mmddyy8.;
datalines;
01/15/99 1 11
01/15/99 2 22
01/15/99 4 44
01/15/99 5 55
02/14/99 3 33
08/29/99 1 88
08/29/99 3 99
08/29/99 5 101
11/11/99 1 111
11/11/99 4 141
;
run;
proc means completetypes noprint nway;
class date x1;
var x2;
output out=new(drop=_freq_ _type_) min=;
run;
proc print data=new;
run;
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Obs date x1 x2 1 01/15/99 1 11 2 01/15/99 2 22 3 01/15/99 3 . 4 01/15/99 4 44 5 01/15/99 5 55 6 02/14/99 1 . 7 02/14/99 2 . 8 02/14/99 3 33 9 02/14/99 4 . 10 02/14/99 5 . 11 08/29/99 1 88 12 08/29/99 2 . 13 08/29/99 3 99 14 08/29/99 4 . 15 08/29/99 5 101 16 11/11/99 1 111 17 11/11/99 2 . 18 11/11/99 3 . 19 11/11/99 4 141 20 11/11/99 5 .
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> MEANS Analytics ==> Descriptive Statistics |
| Date Modified: | 2005-12-03 03:03:04 |
| Date Created: | 2005-12-01 09:32:12 |
| Product Family | Product | Host | SAS Release | |
| Starting | Ending | |||
| SAS System | Base SAS | All | 8 TS M0 | n/a |




