Date: Tue, 11 Mar 2008 21:40:17 -0400
Reply-To: "Howard Schreier <hs AT dc-sug DOT org>"
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Howard Schreier <hs AT dc-sug DOT org>"
Subject: Re: printing in proc reg, but not using title statement
On Mon, 10 Mar 2008 08:00:37 -0700, maryam.mashaie@CATSA.GC.CA wrote:
>I want to run a proc reg and have included some null tests. I can
>print to say this is the value of the regression, but I want a
>DIFFERENT title at the top of my page where I show the results of the
>null hypothesis. I can't seem to get it to work. Here is my code:
>proc reg data=B outest=reg_out1;
> by sexp;
> format sexp sexpfmt.;
> title4 "Part 3b and 3c: estimate equation 1 for men and women
>separately with a constant term";
> model LW = EXP EXP2 EDUC CHILD MAR FRE BIL NOLANG;
> title5 "carry out tests of overall significance";
> h0: test EXP=0, EXP2=0, EDUC=0, CHILD=0, MAR=0, FRE=0, BIL=0,
TITLE statements cannot be changed within a runnable block of code. To put
your MODEL and TEST statements into separate blocks, place a RUN statement
between the TITLE4 and MODEL statements.
Example: First run
proc reg data=sashelp.class outest=reg_out1;
title 'First Title';
model weight = age height;
title 'Alternate Title';
mylabel: test age=0, height=0;
then comment out the RUN; and try it again.