Documentation Example 6 for ODS
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: ODSEX6 */
/* TITLE: Documentation Example 6 for ODS */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: ODS */
/* PROCS: REG */
/* DATA: */
/* */
/* SUPPORT: saswfk UPDATE: July 25, 2010 */
/* REF: Using the Output Delivery System */
/* MISC: */
/****************************************************************/
proc reg data=sashelp.class;
var Age;
model Weight = Height;
run;
model Weight = Height Age;
run;
quit;
title1 'US Population Study';
title2 'Concatenating Two Tables into One Data Set';
data USPopulation;
input Population @@;
retain Year 1780;
Year=Year+10;
YearSq=Year*Year;
Population=Population/1000;
datalines;
3929 5308 7239 9638 12866 17069 23191 31443 39818 50155
62947 75994 91972 105710 122775 131669 151325 179323 203211
;
proc reg data=USPopulation;
ods output covb(persist=run)=Bmatrix;
var YearSq;
model Population = Year / covb;
run;
add YearSq;
print;
run; quit;
proc print;
id _run_;
by _run_;
run;