BookmarkSubscribeRSS Feed
momi
Obsidian | Level 7

Hi,

How can I adjust the size of the regression output in lst or text file so that I have all solutions are lined up in one row?

 

This is what I have so far...

 

 

                              Solution for Random Effects

                                                       Std Err
Effect              Estimate       Pred     DF   t Value

A                      0.1081      0.01360   36E4      7.94
B                      0.02681    0.01810   36E4      1.48
C                      0.03403    0.01608   36E4      2.12

   
                              

Effect              Pr > |t|

A                           <.0001
B                            0.1387
C                            0.0344

 

I want the p-value output to be next to the t value.(below)

 

 

                          Solution for Random Effects

                                                       Std Err
Effect              Estimate       Pred     DF   t Value        Pr > |t|

A                      0.1081      0.01360   36E4      7.94    <.0001
B                      0.02681    0.01810   36E4      1.48    0.1387
C                      0.03403    0.01608   36E4      2.12       0.0344

   

Do I need to add some options in a SAS program? 

Thanks!

 

4 REPLIES 4
Reeza
Super User

I would recommend using a differetn output format. 

Excel or Word maybe?

 

By definition text/lst files don't align and have a concept of formatting so it needs to be done manually. Which is a pain. 

 

If you're on SAS 9.4 ODS EXCEL is a great option IMO.

momi
Obsidian | Level 7

I will find out about IMO option.

 

Thanks!!

ballardw
Super User

If you are using LIST output you may only need to change the linesize option.

Options linesize=132;

Before a procedure would set a maximum line size to 132 characters for example.

You can set a maximum of 256. Or permanently set the option.

 

From the appearance of your output I suspect your current linesize is set to the minimum of 64. You can check that by running this code:

Proc options option=linesize;run;

The log will show something like:

 LINESIZE=98       Specifies the line size for the SAS log and for SAS procedure output for the
                   LISTING destination.

only I suspect you'll see 64 where I have 98.

 

momi
Obsidian | Level 7

LINESIZE = 132 solved the problem!

 

Thanks!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 729 views
  • 6 likes
  • 3 in conversation