Help using Base SAS procedures

Proc Reg title question

Accepted Solution Solved
Reply
Super User
Super User
Posts: 7,994
Accepted Solution

Proc Reg title question

Hi,

 

Anyone know the option to turn off the titles:

Model: MODEL1

 

Dependent Variable: valud Follow-up

 

Which are added automatically from a proc reg:

proc reg data=mydata;
  ods select fitplot;
  model xyz=def;
quit;

I have setup my titles in 1-3 but this still appears in title7/8.


Accepted Solutions
Solution
‎10-03-2016 04:14 AM
Super User
Posts: 11,343

Re: Proc Reg title question

Since Proc Reg supports the possibility of multiple MODEL statements I don't believe there is an option to suppress that as it would be difficult to interpret the result with multiple models. If you need the output in a document without the model label you might send output to datasets using either the OUTPUT option or ODS  and then send that output separately to a document.

View solution in original post


All Replies
Solution
‎10-03-2016 04:14 AM
Super User
Posts: 11,343

Re: Proc Reg title question

Since Proc Reg supports the possibility of multiple MODEL statements I don't believe there is an option to suppress that as it would be difficult to interpret the result with multiple models. If you need the output in a document without the model label you might send output to datasets using either the OUTPUT option or ODS  and then send that output separately to a document.

Super User
Super User
Posts: 7,994

Re: Proc Reg title question

Thanks, I had suspected that would be the answer, but was trying to be lazy.  Will sgplot the resulting table from that.

Super User
Posts: 11,343

Re: Proc Reg title question

I tried to find which template would contain the code generating that text but couldn't in about 10 minutes of searching. Creating a replace template for the specific output might work if you can find it.

Super User
Super User
Posts: 7,994

Re: Proc Reg title question

Ah, well that part I do know, its how I will build the sgplot.  Turn ods trace on, get the object, then you can run source:

proc template;
   source Stat.Reg.Graphics.Fit;
run;

Is the one for the fit graph.  It shows the individual sgplot statements and the options.  Just a matter of pulling that apart.

Thanks.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 386 views
  • 3 likes
  • 2 in conversation