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!
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.
I will find out about IMO option.
Thanks!!
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.
LINESIZE = 132 solved the problem!
Thanks!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.