Skip to Main Content
SAS 9.4 Output Delivery System, 2nd Edition
book

SAS 9.4 Output Delivery System, 2nd Edition

by SAS Documentation
December 2013
Intermediate to advanced content levelIntermediate to advanced
2058 pages
74h 56m
English
SAS Institute
Content preview from SAS 9.4 Output Delivery System, 2nd Edition
other='black';
run;
data gov;
Label Citygovt='City Government Form'
Robgrp='Number of Meetings Scheduled';
Input Citygovt Robgrp Weight; Missing N;
Format Citygovt Govtfmt. Robgrp Robfmt.;
LOOP: OUTPUT; WEIGHT=WEIGHT-1; IF WEIGHT>0 THEN GOTO LOOP;
DROP WEIGHT;
datalines;
0 1 6
0 3 3
0 2 7
0 4 5
N N 10
-3 1 47
-3 3 49
-3 2 63
-3 4 52
. 2 1
3 1 31
3 2 37
3 3 27
3 4 55
3 . 1
;
ods path (prepend) work.templat(update);
proc template;
define crosstabs Base.Freq.CrossTabFreqs;
notes "Crosstabulation table with legend";
rows_header=RowsHeader cols_header=ColsHeader;
label = "Frequency Counts and Percentages";
grand_total_style=data {fontweight=bold};
define header ControllingFor;
dynamic StratNum StrataVariableNames StrataVariableLabels;
text "Controlling for" StrataVariableNames ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cryptologic Aspects of German Intelligence Activities in South America during World War II

Cryptologic Aspects of German Intelligence Activities in South America during World War II

David P. Mowry

Publisher Resources

ISBN: 9781629590011